on 2023 Mar 01 2:41 PM
Hello Experts,
Does SAP CDC logs out active user sessions by calling accounts.logout REST API?
I'm passing UID as parameter.
In my case accounts.logout JS API call is working but it terminates current session only.
We are trying on global logout.
E.g., User logged in device 1 & device 2.
Tries to logout from either of device should logout all other active sessions.
If I try the logout REST API from postman or server side sdk, will it logout active site user across all devices?
Your thoughts are much appreciated.
Thanks
Rohit
Request clarification before answering.
Hi grohitg238,
OOTB functionality works as below:
In simple terms, the REST API terminates all the sessions, whereas web SDK terminates the active session of that web only. So depending on the use case you need to chose if you want to trigger it locally via a client-side call or globally via a server-side call.
Please refer to business documentation - accounts.logout.
I hope this information was helpful in closing this thread.
Thank you.
Best Regards,
Kunal Bansal, SAP CX Architect
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit,
Yes, accounts.logout will log out the active site user across all devices and terminates any active sessions. However, please note that accounts.logout does not disconnect the user from the social providers.
Kindly refer this link for more reference: accounts.logout REST | SAP Help Portal
BR,
Kajol Maan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi grohitg238
Per documentation accounts.logout logs out the specified user from your site across all devices and terminates any active sessions and revokes any active OIDC refresh tokens.
However it actually depends on the parameters you give when sending the accounts.logout call.
By giving the UID parameter, it logs out all active sessions. However if you give parameters like login_token and authMode etc., it only terminates the current session.
So you have the flexibility to either terminate all sessions or only specific session.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.