Using Security Tokens |
Scroll |
In case of using Basic authentication client sends credential with every request. The credential includes user name and password. There is a way to use so called Therefore Token instead of user's password. To retrieve the token use one of the following methods GetConnectionToken or GetConnectionTokenFromADFSToken.
Once you have the token you can use it instead of user's password.
When sending token to the server, you need to inform the server by setting the UseToken HTTP header to "1". Please read more about the UseToken header here.
|
Sample 1. Requesting token calling the GetConnectionToken Web API method.
Sample 2. Using token in subsequent requests.