spring-attic / spring-security-saml-dsl

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

How should I configure RelayState? #59

Open manojp1988 opened 5 years ago

manojp1988 commented 5 years ago

I'm developing SPA with SAML. I have followed this https://www.sylvainlemoine.com/2018/03/29/spring-security-saml2.0-websso-with-angular-client/. Many of the configurations are provided in this saml-dsl library. But I am not sure how to pass relayState configuration and RelayStateSuccessHandler..?

Is there any extension point available for this?

mballoni commented 5 years ago

Did you managed to get it working? I'm almost rewriting the SAMLConfigurer to personalize this simple property =/

manojp1988 commented 5 years ago

No sir, I am not using the dsl configuration, I ended up creating separate configurer class like in the article specified above.

Is the DSL configuration for relayState ready ?

mballoni commented 5 years ago

Would you mind to share your spring security configuration with his alternative? I mean, excluding some data regarding your project, of course. It would be reeeaalllly helpful. Once I understand the strategy I'll open a PR to this project with this configuration.

manojp1988 commented 5 years ago

Please find the sample project I did for SAML with Angular front end.

https://github.com/manojp1988/SAML-Okta-Angular

sleyderzm commented 4 years ago

i override the SAMLConfigurer adding this line in the method samlWebSSOProcessingFilter

samlWebSSOProcessingFilter.setAuthenticationSuccessHandler(new SAMLRelayStateSuccessHandler());

And using the relay state from okta