summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-02-12 08:43:34 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-02-12 08:45:53 (GMT)
commit3d449b79285b257472f39c7116cd515fcf67dbdd (patch)
tree7ef90d871257c86d5d2eb19e7e6fcb8f9d9b026c
parentb0ddc8548604ad9f07fa75ca41ad32c9c5dec96c (diff)
downloaddjango-mellon-3d449b79285b257472f39c7116cd515fcf67dbdd.zip
django-mellon-3d449b79285b257472f39c7116cd515fcf67dbdd.tar.gz
django-mellon-3d449b79285b257472f39c7116cd515fcf67dbdd.tar.bz2
backends: add request argument to authenticate (fixes #30541)v1.2.39
For Django 1.11 compatibility.
-rw-r--r--mellon/backends.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mellon/backends.py b/mellon/backends.py
index 2fb7159..f43c462 100644
--- a/mellon/backends.py
+++ b/mellon/backends.py
@@ -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