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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 0 2

[EDP WebSocket] What does the takeExclusiveSignOnControl in token request mean?

Hello,

As for the WebSocket API, we can perform the authentication by getting access token from EDP and used it to log into ERT web socket successfully. I noticed the example Python program always setting takeExclusiveSignOnControl to True when making the access token request from EDP.

I have question what's the difference between setting takeExclusiveSignOnControl to True and False when making token request either the first token request with "password" mode or "refresh" mode. Please help to clarify

Thanks & Best Regards,

Tiwa.

treprdp-apiwebsocketsrrto
icon clock
10 |1500

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

1 Answer

Upvote
Accepted
20.3k 73 10 20

Hi @tiwa

takeExclusiveSignOnControl Set to true if you want to override any previous session you logged on i.e. force sign-out this ID from other applications and sign-in here

So, for example if there was a connectivity or authentication issue and the your application had to re-login with password, setting the above parameter to true ensures that any previously active login session on the authentication server is logged off and only this new attempt is counted in your list of active sessions.

icon clock
10 |1500

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

Thank you so much for your prompt and useful response. I got your point for the the re-login with password. But for the grant_type as refresh_token, the Python example code set it to True as well, I don't see the point to force other previous sessions to be logged off again during Refresh. Is this for double safety? Please suggest.

Re-refresh token request:

{
   "username":"<username>",
   "refresh_token":"<your current refresh_token>",
   "grant_type":"refresh_token",
   "takeExclusiveSignOnControl": True
}

Hi @tiwa

I suspect this is down to a misunderstanding / lack of clarity in the documentation. I have already reached out to the product owner and once confirmed the examples should be revised in any future update.

Alright, appreciating you @Umer Nalla

Click below to post an Idea Post Idea