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

fix: duplicate URL Encode on RelayState #29

Merged
merged 1 commit into from
Oct 24, 2022

Conversation

coelho
Copy link
Contributor

@coelho coelho commented Oct 14, 2022

The RelayState is URL Encoded twice when using urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST.

This bug results in the ACS receiving the incorrect RelayState. This PR fixes the issue.

@mffap mffap requested a review from stebenz October 14, 2022 06:28
@mffap
Copy link
Member

mffap commented Oct 14, 2022

thanks for the PR @coelho
@stebenz can you have a look pls?

@stebenz
Copy link
Collaborator

stebenz commented Oct 24, 2022

The RelayState is URL Encoded twice when using urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST.

This bug results in the ACS receiving the incorrect RelayState. This PR fixes the issue.

Thank you for your contribution, it seems as if I totally overlooked this as it worked with crewjam and other SPs.

@stebenz stebenz changed the title fix duplicate URL Encode on RelayState fix: duplicate URL Encode on RelayState Oct 24, 2022
@codecov
Copy link

codecov bot commented Oct 24, 2022

Codecov Report

Merging #29 (f171742) into main (fbd6044) will not change coverage.
The diff coverage is 50.00%.

@@           Coverage Diff           @@
##             main      #29   +/-   ##
=======================================
  Coverage   47.38%   47.38%           
=======================================
  Files          21       21           
  Lines        1967     1967           
=======================================
  Hits          932      932           
  Misses        977      977           
  Partials       58       58           
Impacted Files Coverage Δ
pkg/provider/logout_response.go 0.00% <0.00%> (ø)
pkg/provider/response.go 61.34% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@stebenz stebenz merged commit 80e4820 into zitadel:main Oct 24, 2022
@github-actions
Copy link

🎉 This PR is included in version 0.0.8 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants