From 506df5b5ce90303996184546fdbf51c86af7035c Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Tue, 12 Feb 2019 10:00:31 +0100 Subject: [PATCH] auth_saml: remove useless credentials param and add optional request (#30543) And so assure compliance with Django 1.11 --- src/authentic2_auth_saml/backends.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/authentic2_auth_saml/backends.py b/src/authentic2_auth_saml/backends.py index 02d9e6aaa..ca4487129 100644 --- a/src/authentic2_auth_saml/backends.py +++ b/src/authentic2_auth_saml/backends.py @@ -6,10 +6,10 @@ from . import app_settings class SAMLBackend(SAMLBackend): - def authenticate(self, saml_attributes, **credentials): + def authenticate(self, saml_attributes, request=None): if not app_settings.enable: return None - return super(SAMLBackend, self).authenticate(saml_attributes, **credentials) + return super(SAMLBackend, self).authenticate(saml_attributes=saml_attributes, request=request) def get_saml2_authn_context(self): # Pass AuthnContextClassRef from the previous IdP