Skip to content

Commit e215716

Browse files
committed
add kwargs to authenticate method
This way, when using multiple authentication backends (ie, a custom django auth backend and custom Saml2Backend) and the first custom backend does not authenticate the user, this other backend can process the next authentication request attempt without crashing.
1 parent 1fcdada commit e215716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangosaml2/backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def get_saml_user_model():
6767
class Saml2Backend(ModelBackend):
6868

6969
def authenticate(self, session_info=None, attribute_mapping=None,
70-
create_unknown_user=True):
70+
create_unknown_user=True, **kwargs):
7171
if session_info is None or attribute_mapping is None:
7272
logger.error('Session info or attribute mapping are None')
7373
return None

0 commit comments

Comments
 (0)