spring-attic / spring-security-saml-dsl

Spring security okta dsl.
MIT License
43 stars 61 forks source link

Add forcePrincipalAsString to builder #29

Closed patrykkurczyna closed 6 years ago

patrykkurczyna commented 7 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.

fhanik commented 6 years ago

Closed via https://github.com/spring-projects/spring-security-saml-dsl/commit/5e853e6ee3a1b72c737b7028fee567c7a19d1193