-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Does akka-http-pac4j support SAML RelayState?
I'd like to use the RelayState to redirect my SP to the appropriate page after log-in.
I see that some support for RelayState was added to pac4j here: https://github.com/pac4j/pac4j/issues/1041. My searches for documentation of this feature haven't turned up much that I can use yet!
The one thing that I did find is that relayState is used in CAS here: https://github.com/fogbeam/cas_mirror/blob/master/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/DelegatedClientWebflowManager.java#L88
In AkkaHttpSecurity, withAuthentication() doesn't seem to have any support for setting the RelayState as it creates a new context every time: Is there some way to set the RelayState that I am missing?
(Most of my code is adapted from the demo at https://github.com/vidma/akka-http-pac4j-demo - thank you for that resource!)
Any suggestions would be very welcome!