GetOAuthAuthorizationUrl
Retrieves the OAuth Authorization URL, allowing the client to direct the user's browser to the authorization server and initiate the OAuth process. Only needed when developing Web apps.
Input
| Name | Type | Required | Description |
| CallbackUrl | String | False | The URL to which the user is redirected after completing the OAuth authorization process. |
| Scope | String | False | Defines the level of access granted to Snowflake. Scope parameters in the authorization request can restrict operations and roles permitted by the access token. The default scope is 'refresh_token'. |
| State | String | False | An optional value sent with the callback URL to maintain application state or pass additional information during the OAuth flow. |
| Prompt | String | False | Controls the authentication prompt behavior. Options: 'select_account' prompts the user to choose an account, 'None' disables prompts, 'login' forces a credential entry, and 'consent' displays an OAuth consent dialog requesting permission approval. |
Result Set Columns
| Name | Type | Description |
| Url | String | The OAuth authorization URL that the user must visit to grant access to the application. |
| PKCEVerifier | String | A randomly generated string used as a challenge in the PKCE (Proof Key for Code Exchange) flow. Required when retrieving an access token using GetOAuthAccessToken. |