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

[v17] honor redirect to SAML SSO path if user is already authenticated #50442

Merged
merged 5 commits into from
Dec 19, 2024

Conversation

flyinghermit
Copy link
Contributor

@flyinghermit flyinghermit commented Dec 19, 2024

Manual backport of #50436 to branch/v17

In authenticated session, we always used to redirect to root path /web. This was done to prevent showing up Login form for users who are already authenticated but land on the https://proxy/web/login?redirect_uri=... path. This breaks SAML IdP service provider initiated SSO flow when user is already authenticated but is redirected to the root login page.

This PR updates such redirection behaviour in the UI so that if user has a valid web session, and the redirection path matches enterprise/saml-idp/sso path, the UI will honor the redirection to let user continue with SAML SSO. For non-matching path, the existing behavior of redirecting to the root /web path is preserved.

changelog: updates the UI login redirection service to honor redirection to enterprise/saml-idp/sso path even if user is already authenticated with Teleport.

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-50442.d212ksyjt6y4yg.amplifyapp.com

@flyinghermit flyinghermit marked this pull request as ready for review December 19, 2024 16:58
@flyinghermit flyinghermit changed the title [v17] redirect to SAML SSO path if user is already authenticated [v17] honor redirect to SAML SSO path if user is already authenticated Dec 19, 2024
@flyinghermit flyinghermit added this pull request to the merge queue Dec 19, 2024
Merged via the queue into branch/v17 with commit f97b36c Dec 19, 2024
40 checks passed
@flyinghermit flyinghermit deleted the sshah/v17-redirect-on-saml-sso-path branch December 19, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants