SSO - SAML, redirecting the user to the specified landing page after a successful login

I use SSO, where I am an Identity Provider, right now I can successfully log into the Service Provider. But he leads me to the homepage. I want to provide a landing page URL when I submit a response. They searched quite a lot, but could not find anything convincing. Not quite sure which SAML response element carries the URL of the landing page or is it listed in the form I have to provide. Using java and opensaml libraries to generate a response.

+4
source share
1 answer

Although this does not apply to SAML specifications, the de facto standard should use an element RelayStatefor this. It is added as a parameter in the response in addition to the parameter SAMLResponseand URL value landing. Example HTML page from http://en.wikipedia.org/wiki/SAML_2.0 for IDP using POSTresponse bindings :

<form method="post" action="https://sp.example.com/SAML2/SSO/POST" ...>
    <input type="hidden" name="SAMLResponse" value="<response>" />
    <input type="hidden" name="RelayState" value="<url>" />
    ...
    <input type="submit" value="Submit" />
</form>

Edit:
, RelayState , SP IDP. URL-, , , -. RelayState IDP-init-SSO IDP SP, , , , , .

+6

All Articles