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

Logout Request/Response and currentUrl #362

Open
roandrg opened this issue Aug 31, 2021 · 2 comments
Open

Logout Request/Response and currentUrl #362

roandrg opened this issue Aug 31, 2021 · 2 comments

Comments

@roandrg
Copy link

roandrg commented Aug 31, 2021

I'm trying to consume a Logout Request from the IdP. Im not able to validate the Request due to the proxy we are using in our frontend Server.

"The LogoutRequest was received at https://site.local/site_name/index.cfm instead of https://site.local/sso.slo_consume".

We did get the auth Response working because we have an constructor there where we can pass the "currentUrl".

authn. public SamlResponse(Saml2Settings settings, String currentUrl, String samlResponse).

Is there any way for the Logout Request to archieve something similar?

Thanks for any hint

Rolf

@pitbulk
Copy link
Contributor

pitbulk commented Sep 6, 2021

Have you read https://github.com/onelogin/java-saml#working-behind-load-balancer ?

Rather than using the currentUrl constructor, you can use the HttpRequest request, but make sure request.getRequestURL()
returns the expected URL.

P.S I'm ok if you provide a PR with a constructor with currentUrl for LogoutResponse
as the one provided in this commit: a680fa0

@roandrg
Copy link
Author

roandrg commented Sep 9, 2021

Thank you for your Reply!

I did read the Proxy Doc but its not the Server name that is different, its the URL (path) of the request.

I will try this with the HttpRequest.

I would love to contribute this to the Project. But unfortunately im not a native Java Programmer im just using the library as jar file in another Programming language.

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

2 participants