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

SAML: Redirect Fix #1958

Merged
merged 1 commit into from
Mar 22, 2024
Merged

Conversation

jakobvogel
Copy link
Member

Description

In order to route back to the originally intended site after a SAML login, the login site stores the original URL in the local storage. This is done by passing the URL to the Pasta template and rendering the string as part of a respective JavaScript snippet. If a URL contains characters with significance in HTML such as &, though, the Pasta string renderer converts these to HTML entities unless everything is placed within <i:raw>.

Additional Notes

  • This PR fixes or works on following ticket(s): SIRI-937

Checklist

  • Code change has been tested and works locally
  • Code was formatted via IntelliJ and follows SonarLint & best practices

In order to route back to the originally intended site after a SAML login, the login site stores the original URL in the local storage. This is done by passing the URL to the Pasta template and rendering the string as part of a respective JavaScript snippet. If a URL contains characters with significance in HTML such as `&`, though, the Pasta string renderer converts these to HTML entities unless everything is placed within `<i:raw>`.

SIRI-937
@jakobvogel jakobvogel added 🐛 Bugfix Contains only a small fix for an existing bug 👶🏻 Trivial Easy to review labels Mar 21, 2024
@jakobvogel jakobvogel merged commit fa37e00 into develop Mar 22, 2024
5 checks passed
@jakobvogel jakobvogel deleted the feature/jvo/SIRI-937-Redirect-after-SAML branch March 22, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bugfix Contains only a small fix for an existing bug 👶🏻 Trivial Easy to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants