mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-17 19:59:29 +00:00
Allow for service names to propagate to the log
This commit is contained in:
@@ -23,6 +23,7 @@ class APIKeyAuthentication(object):
|
||||
url = request.path
|
||||
AuthAPILog(key=keyobj, access_datetime=datetime.utcnow(), url=url).save()
|
||||
request.user = AnonymousUser()
|
||||
request.api_key = keyobj
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user