Skip to content

Commit

Permalink
[FIX] auth_saml: RelayState can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tb-flyt authored and vincent-hatakeyama committed Dec 15, 2023
1 parent 4c121af commit 454be7e
Showing 1 changed file with 1 addition 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 @@ -196,7 +196,7 @@ def signin(self, req, **kw):
"""
saml_response = kw.get("SAMLResponse")

if kw.get("RelayState") is None:
if not kw.get("RelayState"):
# here we are in front of a client that went through
# some routes that "lost" its relaystate... this can happen
# if the client visited his IDP and successfully logged in
Expand Down

0 comments on commit 454be7e

Please sign in to comment.