GetOAuthAccessToken
Gets an authentication token from SalesforceDataCloud.
Input
Name | Type | Required | Description |
AuthMode | String | False | 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. |
Scope | String | False | A comma-separated list of permissions to request from the user. Please check the SalesforceDataCloud API for a list of available permissions. |
CallbackUrl | String | False | The URL the user will be redirected to after authorizing your application. This value must match the Redirect URL you have specified in the SalesforceDataCloud app settings. Only needed when the Authmode parameter is Web. |
Verifier | String | False | The verifier returned from SalesforceDataCloud after the user has authorized your app to have access to their data. This value will be returned as a parameter to the callback URL. |
State | String | False | 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 SalesforceDataCloud authorization server and back. Uses include redirecting the user to the correct resource in your site, nonces, and cross-site-request-forgery mitigations. |
PKCEVerifier | String | False | Specifies 128 bytes of random data with high entropy to make guessing the code value difficult. Used when AuthScheme=OAuthPKCE. |
Result Set Columns
Name | Type | Description |
OAuthAccessToken | String | The access token used for communication with SalesforceDataCloud. |
OAuthRefreshToken | String | The OAuth refresh token. |
ExpiresIn | String | The remaining lifetime on the access token. A -1 denotes that it will not expire. |
TenantEndpoint | String | The login url. |