Skip to content

Commit b00219f

Browse files
committed
Logger for non-saml2 authentication attempts from error to info
1 parent 701d11e commit b00219f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

djangosaml2/backends.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ class Saml2Backend(ModelBackend):
6464
def authenticate(self, request, session_info=None, attribute_mapping=None,
6565
create_unknown_user=True, **kwargs):
6666
if session_info is None or attribute_mapping is None:
67-
logger.error('Session info or attribute mapping are None')
67+
logger.info('Session info or attribute mapping are None')
6868
return None
6969

70-
if not 'ava' in session_info:
70+
if 'ava' not in session_info:
7171
logger.error('"ava" key not found in session_info')
7272
return None
7373

0 commit comments

Comments
 (0)