saml: Pass correct settings object to OneLogin_Saml2_Logout_Request.

config is a dict, but the OneLogin_Saml2_Logout_Request expects to
receive a OneLogin_Saml2_Settings object.
This commit is contained in:
Mateusz Mandera 2021-10-30 18:37:31 +02:00 committed by Tim Abbott
parent f21cee7caa
commit 64a04d90b2
1 changed files with 1 additions and 1 deletions

View File

@ -2279,7 +2279,7 @@ class SAMLAuthBackend(SocialAuthMixin, SAMLAuth):
# The only valid SAMLRequest we can receive is a LogoutRequest.
logout_request_xml = OneLogin_Saml2_Logout_Request(
config, saml_response_or_request[0]
saml_settings, saml_response_or_request[0]
).get_xml()
issuers = [OneLogin_Saml2_Logout_Request.get_issuer(logout_request_xml)]
except self.SAMLRESPONSE_PARSING_EXCEPTIONS: