Skip to content

Commit

Permalink
[FIX] auth_saml: avoid redirecting when there is a SAML error
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-hatakeyama committed Feb 18, 2025
1 parent 7fe6b8a commit 3a5cde2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion auth_saml/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _saml_autoredirect(self):
autoredirect_providers = self.list_saml_providers(True)
# do not redirect if asked too or if a SAML error has been found
disable_autoredirect = (
"disable_autoredirect" in request.params or "error" in request.params
"disable_autoredirect" in request.params or "saml_error" in request.params
)
if autoredirect_providers and not disable_autoredirect:
return werkzeug.utils.redirect(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Avoid redirecting when there is a SAML error.

0 comments on commit 3a5cde2

Please sign in to comment.