misc: update authenticate() for compatibility from 1.8 to 2.2 (#36330)
This commit is contained in:
parent
fca5d01942
commit
e3a6586a00
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue