GetOAuthAccessToken
Retrieves an OAuth access token for authenticating API requests to Amazon S3.
Input
| Name | Type | Required | Description |
| AuthMode | String | False | Specifies the authentication flow to use. Choose 'App' for desktop-based authentication or 'Web' for browser-based authentication.
The allowed values are APP, WEB. The default value is APP. |
| Scopes | String | False | A comma-separated list of permissions (scopes) requested from the user, which define what resources the application can access. |
| CallbackUrl | String | False | The redirect URL where the user is sent after authorizing the application, typically registered with the OAuth provider. |
| Verifier | String | False | The verification code returned by the authorization server after the user grants access, included as a parameter in the callback URL. |
| State | String | False | An arbitrary value passed by the application and returned by the authorization server, commonly used to maintain application state, prevent CSRF attacks, or guide post-login navigation. |
Result Set Columns
| Name | Type | Description |
| OAuthAccessToken | String | The short-lived token issued by the authorization server that grants access to the user's data. |
| OAuthRefreshToken | String | The long-lived token that can be used to obtain a new access token without requiring the user to reauthorize. |
| ExpiresIn | Long | The number of seconds until the access token expires. To create an access token that does not expire, assign a value of -1. |