backends: add request argument to authenticate (fixes #30541)

For Django 1.11 compatibility.
This commit is contained in:
Benjamin Dauvergne 2019-02-12 09:43:34 +01:00
parent b0ddc85486
commit 3d449b7928
1 changed files with 1 additions and 1 deletions

View File

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