Skip to content

Commit 3a5cde2

Browse files
[FIX] auth_saml: avoid redirecting when there is a SAML error
1 parent 7fe6b8a commit 3a5cde2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

auth_saml/controllers/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _saml_autoredirect(self):
8383
autoredirect_providers = self.list_saml_providers(True)
8484
# do not redirect if asked too or if a SAML error has been found
8585
disable_autoredirect = (
86-
"disable_autoredirect" in request.params or "error" in request.params
86+
"disable_autoredirect" in request.params or "saml_error" in request.params
8787
)
8888
if autoredirect_providers and not disable_autoredirect:
8989
return werkzeug.utils.redirect(
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Avoid redirecting when there is a SAML error.

0 commit comments

Comments
 (0)