From e3a6586a00328a7a2bb417989752e8b719145d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 22 Sep 2019 10:34:13 +0200 Subject: [PATCH] misc: update authenticate() for compatibility from 1.8 to 2.2 (#36330) --- mellon/backends.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mellon/backends.py b/mellon/backends.py index 575bb08..309ffb6 100644 --- a/mellon/backends.py +++ b/mellon/backends.py @@ -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