Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link between one SAML request and its SAML response #35

Closed
eTouchard opened this issue Jul 10, 2019 · 1 comment
Closed

Link between one SAML request and its SAML response #35

eTouchard opened this issue Jul 10, 2019 · 1 comment

Comments

@eTouchard
Copy link

Hi

I would like to link an SAML request to its response. After reading some stuff on internet it seems that the relayState is ment to be used.
Is it the same as defined in redirectToIdentityProvider method ?
And by the way do you know how to get it form an SamlResponse ?

Regards
Eric (again)

@eTouchard eTouchard changed the title Link between one SAML request and its SAML responce Link between one SAML request and its SAML response Jul 11, 2019
@ktreimann
Copy link

RelayState and SamlResponse will both be servlet parameters of the HTTP request, so you can do something like this:

String relayState = request.getParameter("RelayState");
SamlResponse samlResponse = client.processPostFromIdentityProvider(request);

You can then add them to a map or link them however you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants