Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1649 from matrix-org/dbkr/log_ui_auth_args
Browse files Browse the repository at this point in the history
Log the args that we have on UI auth completion
  • Loading branch information
erikjohnston authored Dec 5, 2016
2 parents 3e90250 + c9d4e7b commit 338df4f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion synapse/handlers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,15 @@ def check_auth(self, flows, clientdict, clientip):

for f in flows:
if len(set(f) - set(creds.keys())) == 0:
logger.info("Auth completed with creds: %r", creds)
# it's very useful to know what args are stored, but this can
# include the password in the case of registering, so only log
# the keys (confusingly, clientdict may contain a password
# param, creds is just what the user authed as for UI auth
# and is not sensitive).
logger.info(
"Auth completed with creds: %r. Client dict has keys: %r",
creds, clientdict.keys()
)
defer.returnValue((True, creds, clientdict, session['id']))

ret = self._auth_dict_for_flows(flows, session)
Expand Down

0 comments on commit 338df4f

Please sign in to comment.