-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f6d4dd
commit 033a4e3
Showing
8 changed files
with
68 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/java/com/snowflake/kafka/connector/internal/OAuthConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.snowflake.kafka.connector.internal; | ||
|
||
/** | ||
* This class contains constants for OAuth request. | ||
* | ||
* @see <a | ||
* href="https://github.com/snowflakedb/snowflake/blob/4fdb96cd5849f266cda430c5d49a13c29e866af5/GlobalServices/src/main/java/com/snowflake/resources/ResourceConstants.java">ResourceConstants</a> | ||
*/ | ||
public class OAuthConstants { | ||
public static final String TOKEN_REQUEST_ENDPOINT = "/oauth/token-request"; | ||
public static final String OAUTH_CONTENT_TYPE_HEADER = "application/x-www-form-urlencoded"; | ||
public static final String BASIC_AUTH_HEADER_PREFIX = "Basic "; | ||
public static final String GRANT_TYPE_PARAM = "grant_type"; | ||
public static final String REFRESH_TOKEN = "refresh_token"; | ||
public static final String ACCESS_TOKEN = "access_token"; | ||
public static final String SNOWFLAKE_JWT = "snowflake_jwt"; | ||
public static final String OAUTH = "oauth"; | ||
public static final String REDIRECT_URI = "redirect_uri"; | ||
public static final String DEFAULT_REDIRECT_URI = "https://localhost.com/oauth"; | ||
public static final int OAUTH_MAX_RETRY = 5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters