Get Client Credential Token
- Last UpdatedJun 10, 2024
- 1 minute read
Use GetDefaultClientCredentialToken() method to return the client credential token using custom scope.
Syntax
var token = TokenServiceCommonFunctions.GetDefaultClientCredentialToken(applicationName);
Parameters
applicationName: Application Name
Return Value
This method returns token value of string datatype.
Example
//Get the default client credential token with custom scope.
var token = TokenServiceCommonFunctions.GetDefaultClientCredentialToken("applicationName");
Note: Use this function in the custom activity if the access token is required.