Projet

Général

Profil

0001-auth_saml-remove-useless-credentials-param-and-add-o.patch

Serghei Mihai, 12 février 2019 12:09

Télécharger (1,12 ko)

Voir les différences:

Subject: [PATCH] auth_saml: remove useless credentials param and add optional
 request (#30543)

And so assure compliance with Django 1.11
 src/authentic2_auth_saml/backends.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/authentic2_auth_saml/backends.py
28 28

  
29 29

  
30 30
class SAMLBackend(SAMLBackend):
31
    def authenticate(self, saml_attributes, **credentials):
31
    def authenticate(self, saml_attributes, request=None):
32 32
        if not app_settings.enable:
33 33
            return None
34
        return super(SAMLBackend, self).authenticate(saml_attributes, **credentials)
34
        return super(SAMLBackend, self).authenticate(saml_attributes, request)
35 35

  
36 36
    def get_saml2_authn_context(self):
37 37
        # Pass AuthnContextClassRef from the previous IdP
38
-