Spring security: how does Spring security register a new session in SessionRegistry?

I use custom authentication with spring security. I did not use AuthenticationProvider, but I used UserPasswordAuthenticationToken and authenticated the user who is working fine. I want to get a list of all registered users that can be used with SessionRegistry. I want to know how SessionRegistry registers a new session and how? I looked at the spring documentation, which does not explain its operation. Can anyone help?

+5
source share
1 answer

Information about the new session will be added to the SessionRegistry from using: registerSessionAuthenticationStrategy on successful authentication.

To implement this, you first need to use the SessionRegistryImpl for the SessionRegistry bean.

+1
source

Source: https://habr.com/ru/post/1242316/


All Articles