Using Security Tokens |
Scroll |
While using Basic authentication, the client sends their credentials with every request. The credentials include the user name and password. A Therefore Token can be used instead of the user's password. To retrieve the token, use one of the following methods: GetConnectionToken or GetConnectionTokenFromADFSToken.
•When sending a token to the server, inform the server by setting the UseToken HTTP header to "1". Please read more about the UseToken header here. •The token must be Base64-encoded.
|
Sample 1. Requesting a token by calling the GetConnectionToken Web API method.
Sample 2. Using a token in subsequent requests.
GetConnectionToken retrieves a long-living token. It is only cleared on sign-out or after days of inactivity. This can be configured in the Thereforeā¢ Solution Designer as demonstrated in the following screenshot: