-1

I am working on an application with several roles. Changing this role to admin user should log out the target user.

My first lead was to set up data tables to retrieve the list of active tokens by taking an example from this site: https://javadeveloperzone.com/spring-boot/spring-boot-oauth2-jdbc-token-store-example/#3_Source_Code

Except that at the connection, the data information is not saved in my tables.

Is it possible to log out a user "by force"?

EleXorZ
  • 47
  • 1
  • 6

1 Answers1

0

Yes, there are several ways how you do it. At the end of the day it invalidates the Authentication object in Spring's security context.

Arthur Klezovich
  • 2,595
  • 1
  • 13
  • 17