Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSesssion Strategy should be on Token level? #29759
Comments
This comment has been minimized.
This comment has been minimized.
@weaverryan Hi Ryan, do you think this makes sense? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On the security level we can specify if the session should be migrated invalidate, or none.
The problem is that we can have multiple guards under 1 firewall.
And each of this Authenticator creates a PostAuthenticationGuardToken. And in some case, AAuthenticator should invalidate the session. and the BAuthenticator should migrate the session. I would propose to move the session_strategy on the level of Authenticator, or maybe on Token level.
This is how I solved the problem in my case.
Does it make sense to do this change on token level, if yes i can try to come with a PR .
Regards.