summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-08-24 13:42:07 +0000
committerLars Wirzenius <liw@liw.fi>2017-08-24 13:42:07 +0000
commitc5f8d9ee60f267aaca5efb0d579b3fea09a5cace (patch)
tree6def6f3c02e63c4651b08c13f258e24003d2703d
parentc29127408211f69f03d9c5b59eb00bdd47780966 (diff)
downloadapifw-c5f8d9ee60f267aaca5efb0d579b3fea09a5cace.tar.gz
Add: log the token so it can be seen
-rw-r--r--apifw/bottleapp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/apifw/bottleapp.py b/apifw/bottleapp.py
index 869a77f..9cc9d08 100644
--- a/apifw/bottleapp.py
+++ b/apifw/bottleapp.py
@@ -155,6 +155,7 @@ class BottleAuthorizationPlugin:
try:
token = apifw.decode_token(token, self.pubkey, audience=self.aud)
logging.debug('Request Authorization token can be decoded: good')
+ logging.debug('Token: %r', token)
return token
except jwt.InvalidTokenError as e:
self.raise_unauthorized(str(e))