Skip to content

Commit

Permalink
raise 401 if no username can be retrieveed from jwt #111
Browse files Browse the repository at this point in the history
jreadey committed Nov 28, 2021
1 parent 1b2e2f3 commit f22f4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hsds/util/jwtUtil.py
Original file line number Diff line number Diff line change
@@ -192,7 +192,7 @@ def verifyBearerToken(app, token):

if not username:
log.warn("unable to retreive username from bearer token")
return None
raise HTTPUnauthorized()

exp = None
log.debug(f"decoded token: {jwt_decode}")

0 comments on commit f22f4fe

Please sign in to comment.