Saml2Authentication isn't serializable #7681
Labels
in: saml2
An issue in SAML2 modules
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Hi Spring Security team,
I've encounter an issue using the new Saml2 support with Spring Session.
In the
OpenSamlAuthenticationProvider
class in theauthenticate
method we create the authentication this way :But this isn't serializable with the default serializer provided by Spring Session.
Solution
IMO provide an implementation of the
AuthenticatedPrincipal
instead of using an anonymous class should do the trick here.What do you think about that ?
Have a nice day :)
The text was updated successfully, but these errors were encountered: