Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log users and the credentials they obtain #206

Merged
merged 10 commits into from
Dec 20, 2019
7 changes: 7 additions & 0 deletions confidant/routes/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,13 @@ def get_credential(id):
for service in Service.data_type_date_index.query('service'):
services.append(service.id)

if authnz.user_is_user_type('user'):
ryan-lane marked this conversation as resolved.
Show resolved Hide resolved
log_line = "{0} get credential {1}".format(
authnz.get_logged_in_user(),
id
)
logging.info(log_line)

credential = {
'id': id,
'name': cred.name,
Expand Down