Closed patrykkurczyna closed 6 years ago
I keep playing with Okta and Spring Boot using SAML, but keep getting Caused by: java.io.NotSerializableException: org.opensaml.saml2.core.impl.NameIDImpl. According to this: http://forum.spring.io/forum/spring-projects/security/saml/128697-notserializableexception-org-opensaml-saml2-core-impl-nameidimpl this can be avoided by setting up forcePrincipalAsString property in SAMLAuthenticationProvider to true. Added builder for this property in this PR with default value set to false.
Caused by: java.io.NotSerializableException: org.opensaml.saml2.core.impl.NameIDImpl
forcePrincipalAsString
SAMLAuthenticationProvider
true
false
Closed via https://github.com/spring-projects/spring-security-saml-dsl/commit/5e853e6ee3a1b72c737b7028fee567c7a19d1193
I keep playing with Okta and Spring Boot using SAML, but keep getting
Caused by: java.io.NotSerializableException: org.opensaml.saml2.core.impl.NameIDImpl
. According to this: http://forum.spring.io/forum/spring-projects/security/saml/128697-notserializableexception-org-opensaml-saml2-core-impl-nameidimpl this can be avoided by setting upforcePrincipalAsString
property inSAMLAuthenticationProvider
totrue
. Added builder for this property in this PR with default value set tofalse
.