misc: update authenticate() for compatibility from 1.8 to 2.2 (#36330)

This commit is contained in:
Frédéric Péters 2019-09-22 10:34:13 +02:00
parent fca5d01942
commit e3a6586a00
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ from . import utils
class SAMLBackend(ModelBackend):
def authenticate(self, saml_attributes, request=None):
def authenticate(self, request=None, **credentials):
saml_attributes = credentials.get('saml_attributes')
# without an issuer we can do nothing
if 'issuer' not in saml_attributes:
return