Permalink
Browse files

Merge pull request #1009 from mozilla/jeffbryner-auth0-1

user agent/username fixes
  • Loading branch information...
pwnbus committed Dec 26, 2018
2 parents bf1b9b8 + b663cd4 commit 7fc1362b964fac31bddae8acb03fc20141113f77
Showing with 4 additions and 1 deletion.
  1. +4 −1 cron/auth02mozdef.py
@@ -263,6 +263,9 @@ def process_msg(mozmsg, msg):
See also https://auth0.com/docs/api/management/v2#!/Logs/get_logs
"""
details = DotDict({})
# defaults
details.username = "UNKNOWN"
details.userid = "UNKNNOWN"

# key words used to set category and success/failure markers
authentication_words = ['Login', 'Logout', 'Auth']
@@ -298,7 +301,7 @@ def process_msg(mozmsg, msg):
pass

try:
mozmsg.useragent = msg.user_agent
details['useragent'] = msg.user_agent
except KeyError:
pass

0 comments on commit 7fc1362

Please sign in to comment.