-
|
The "User A" has 2 devices and login to the system
So he has 2 login session (session cookie) in two different device Can we use DELETE /oauth2/auth/sessions/login to invalidates All of "User A" login session? Moreover, how can we revoke all of "User A" access token and refresh token? Thank for help and support |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Hello @Wilmast This is not easy to pull off if you are using an OAuth2.0 based flow. |
Beta Was this translation helpful? Give feedback.
-
|
hey @vinckr i'm refrencing to
so i have multiple devices (D1 & D2) and also use github to authenticate to different apps (App1 & App2). I used D1 to authenticate to App1. now i lost the device D1, so i use D2, go to the github session list and revoke the session from D1. totally clear that the application session from App1 still active (and has to be invalidated in App1). now a person unlocked D1, goes to App2 and, of course, has to enter credentials. everything i wan't is to be able to avoid the automatically login on specific devices and not invalidating consent sessions / tokens etc. currently we do this with a button that calls the "Invalidate All Login Sessions" endpoint and this is fine for D1, but not for all the other devices like D2 which i use right now. |
Beta Was this translation helpful? Give feedback.
Hello @Wilmast
Many apologies for the late answer!
This is not easy to pull off if you are using an OAuth2.0 based flow.
It does not make sense to revoke the refresh token to invalidate a session.
I recommend taking a look at these documents:
Access and Refresh Tokens are not Sessions!
A bit more controversial but worth a read:
Why you probably do not need OAuth2 / OpenID Connect