GetOAuthAccessToken
Gets an authentication token from Bitbucket.
Input
Name | Type | Description |
AuthMode | String | The type of authentication mode to use. Select App for getting authentication tokens via a desktop app. Select Web for getting authentication tokens via a Web app.
The allowed values are APP, WEB. The default value is APP. |
CallbackUrl | String | The URL the user will be redirected to after authorizing your application. This value must match the Callback URL you specified when creating a custom OAuth app in Bitbucket. Only needed when the AuthMode is set to WEB. |
Verifier | String | The verifier code returned from Bitbucket after the user has authorized your app to have access to their data. Upon running GetOAuthAuthorizationURL and visiting the URL that it displays, this value will be shown as 'code' parameter in the browser's URL. |
State | String | Indicates any state which may be useful to your application upon receipt of the response. Your application receives the same value it sent, as this parameter makes a round-trip to the Bitbucket authorization server and back. Uses include redirecting the user to the correct resource in your site, nonces, and cross-site-request-forgery mitigations. |
Result Set Columns
Name | Type | Description |
OAuthAccessToken | String | The access token used for communication with Bitbucket. |
OAuthRefreshToken | String | The OAuth refresh token. |
ExpiresIn | String | The remaining lifetime on the access token. A -1 denotes that it will not expire. |