Skip to content
Snippets Groups Projects
Commit 943b8a00 authored by nagem's avatar nagem
Browse files

Remove auth token from log message

parent 84c32b3d
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,8 @@ class RequestHandler(webapp2.RequestHandler):
else:
err_msg = 'Invalid OAuth2 token.'
headers = {'WWW-Authenticate': 'Bearer realm="{}", error="invalid_token", error_description="{}"'.format(site_id, err_msg)}
if 'Authorization' in self.request.headers:
self.request.headers['Authorization'] = '<auth token removed>'
log.warn('{} Request headers: {}'.format(err_msg, util.str_from_dict(self.request.headers)))
self.abort(401, err_msg, headers=headers)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment