If refresh tokens issued to a user in OAuth2.0 are invalidated by the admin then I want the user to be logged out from application. Can anyone provide solution for this in Spring or Java?
If refresh tokens issued to a user in OAuth2.0 are invalidated by the admin then I want the user to be logged out from application. Can anyone provide solution for this in Spring or Java?
You can use spring session Management with SessionRegistry
Then you can expire the session from anywhere using something like this
sessionRegistry.getSessionInformation(sessionId).expireNow();