GetOAuthAccessToken
If using a Windows application, set Authmode to App. If using a Web app, set Authmode to Web and specify the Verifier obtained by GetOAuthAuthorizationUrl.
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. |
Verifier | String | The verifier token returned by Dynamics CRM after using the URL obtained with GetOAuthAuthorizationUrl. |
CallbackUrl | String | The page to return the user to after authorization is complete. |
Prompt | String | Defaults to 'select_account' which prompts the user to select account while authenticating. Set to 'None', for no prompt, 'login' to force user to enter their credentials or 'consent' to trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app. |
Result Set Columns
Name | Type | Description |
Scope | String | The scope of permissions for the app. |
OAuthRefreshToken | String | A token that may be used to obtain a new access token. |
OAuthAccessToken | String | The OAuth access token. |
ExpiresIn | String | The remaining lifetime on the access token. A -1 denotes that it will not expire. |
_persist_serverversion | String | The server version for Dynamics CRM Server. |