Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
ganiserb committed May 24, 2016
commit e215716fb81b5c095179464b87e07eeffd8fed5a
2 changes: 1 addition & 1 deletion djangosaml2/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get_saml_user_model():
class Saml2Backend(ModelBackend):

def authenticate(self, session_info=None, attribute_mapping=None,
create_unknown_user=True):
create_unknown_user=True, **kwargs):
if session_info is None or attribute_mapping is None:
logger.error('Session info or attribute mapping are None')
return None
Expand Down