Projet

Général

Profil

0002-backends-add-request-argument-to-authenticate-fixes-.patch

Benjamin Dauvergne, 12 février 2019 09:46

Télécharger (796 octets)

Voir les différences:

Subject: [PATCH 2/2] backends: add request argument to authenticate (fixes
 #30541)

For Django 1.11 compatibility.
 mellon/backends.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mellon/backends.py
19 19

  
20 20

  
21 21
class SAMLBackend(ModelBackend):
22
    def authenticate(self, saml_attributes):
22
    def authenticate(self, saml_attributes, request=None):
23 23
        # without an issuer we can do nothing
24 24
        if 'issuer' not in saml_attributes:
25 25
            return
26
-