GetOAuthAccessToken
Fetches the OAuth Access Token, which is used to authenticate and authorize API calls made to GitHub.
Input
Name | Type | Description |
AuthMode | String | Specifies the authentication mode to use for obtaining the OAuth access token. Allowed values are 'APP' for app-based authentication and 'WEB' for web-based authentication. |
Verifier | String | The verifier token provided by GitHub after completing the authorization process using the URL obtained with GetOAuthAuthorizationURL. Required only when 'AuthMode' is set to 'WEB'. |
Scope | String | A comma-separated list of scopes defining the permissions being requested by the application (for example, 'repo', 'user'). |
CallbackUrl | String | The URL to which the user is redirected after authorizing your application. It should match the callback URL registered with the GitHub app. |
State | String | A user-defined value passed to GitHub and returned in the response, used for maintaining application state or for security purposes (for example, CSRF protection or nonces). |
Result Set Columns
Name | Type | Description |
OAuthAccessToken | String | The OAuth Access Token issued by GitHub, used for authenticating API requests. |
OAuthRefreshToken | String | An OAuth Refresh Token provided by GitHub, used to obtain a new access token without requiring user reauthorization. |
ExpiresIn | String | The duration in seconds for which the access token is valid before expiration. |