For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
56.2k 145 45 65

​The document also mentions about token credentials. I would like to know more about it. (from WebSocket API Webinar Nov 29)

The document also mentions about token credentials. I would like to know more about it. Where is the token coming from? Typically, I use the username in the login request when connection to TREP.

treprdp-apiwebsocketsrrtotoken
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
1.9k 7 9 16

The token is retrieved from an authentication server as part of the TREP Authentication feature. You can find more information on TREP Authentication within the ADS Installation Manual and TREP Authentication Guide. When reviewing the example applications, each language we show how to retrieve the token by providing login credentials via an HTTP request, and how to include it as a cookie on a Websocket.

This question was first asked in an Introduction to the Elektron WebSocket API webinar (29th of Nov). Please see here: Introduction to the Elektron WebSocket API

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.