Reputation: 33
We configured our SPA with mod_auth_mellon and the SP Initiated setup works well. We now want to add the ability to dynamically route to SPA URL which initiated the SSO SAML call.
Below is the current flow
In Step(3) we now want to redirect back to http://foo.com/user/1. What configuration changes should I make in SP / IDP configuration to enable dynamic routing?
Upvotes: 0
Views: 866
Reputation: 95
If you are using SAML 2.0 then you want to use the RelayState. When creating your AuthN request in step 2, you will want to make sure that you as the Service Provider are including your desired RelayState. The value you provide to the IDP for RelayState will be carried through the transaction and given back to you as a URL parameter in Step 3 when the user POSTs to your ACS @ http://foo.com/user
Here is an example flow:
On the off chance you are not doing SP init SSO and are instead doing a generic redirect to an IDP initiated SSO Url from PingFederate, you can add the url parameter TargetResource to your IDP initiated SSO redirection to then receive it back with the SAMLResponse later.
Upvotes: 0