GetOAuthAccessToken
Fetches the OAuth Access Token, which is used to authenticate and authorize API calls made.
Procedure-Specific Information
For example:
EXEC GetOAuthAccessToken AuthMode = 'WEB', Verifier = 'verifier_code'
Input
| Name | Type | Required | Description |
| AuthMode | String | False | Specifies the authentication flow. Choose 'App' for desktop-based apps or 'Web' for browser-based apps using OAuth.
The allowed values are APP, WEB. The default value is APP. |
| Verifier | String | False | The verification code returned after the user grants access, used to exchange for an access token. |
| CallbackUrl | String | False | The redirect URI where the user is sent after they authorize the app. |
| State | String | False | An optional value used to preserve application state and help protect against CSRF attacks. Because the service does not allow localhost redirect URIs, this parameter is commonly used to store the callback URL, unless the callback URL is a custom HTTPS URL. |
Result Set Columns
| Name | Type | Description |
| OAuthAccessToken | String | The short-lived token used to authenticate API requests. |
| OAuthRefreshToken | String | A long-lived token used to request a new access token after the current one expires. |
| ExpiresIn | String | The number of seconds until the access token expires. |