Show/Hide Toolbars

Therefore Web API Programming Interface 1.0

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.

 

note

 

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.

 

WebAPI.Sample.GetConnectionToken

 

 

 

Sample 2. Using a token in subsequent requests.

 

WebAPI.Sample.TokenInRequest

 

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:

 

The.WebAPI.Operation.GetConnectionToken

 

 

Ā© 2024 Therefore Corporation, all rights reserved.