Skip to content

Commit

Permalink
fix: prefer REDIRECT binding for logout
Browse files Browse the repository at this point in the history
Without this setting, the SP will try SOAP on UU IdP's for no apparent reason
  • Loading branch information
tymees committed Jul 3, 2023
1 parent e58d7e1 commit 1028f38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cdh/federated_auth/saml/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
}

SAML_DEFAULT_BINDING = saml2.BINDING_HTTP_REDIRECT # or saml2.BIND_HTTP_POST
SAML_LOGOUT_REQUEST_PREFERRED_BINDING = saml2.BINDING_HTTP_REDIRECT # or saml2.BIND_HTTP_POST

# Set this to 'False' if your app needs to be paranoid. Generally not needed.
SAML_IGNORE_LOGOUT_ERRORS = True
SAML_SESSION_COOKIE_NAME = 'saml_session'
Expand Down

0 comments on commit 1028f38

Please sign in to comment.