Skip to content

Commit

Permalink
set verify_signature as True
Browse files Browse the repository at this point in the history
  • Loading branch information
utku-ozturk committed Nov 5, 2023
1 parent 8fec7a9 commit 8c36b35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dcicutils/redis_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ def decode_jwt(self, audience: str, secret: str, leeway: int = 30, algorithms: l
:param leeway: numerical value in seconds to account for clock drift
:return: a decoded JWT in dictionary format
"""
#TODO: verify_signature should be True
return jwt.decode(self.jwt, secret, audience=audience, leeway=leeway,
options={'verify_signature': False}, algorithms=algorithms)
options={'verify_signature': True}, algorithms=algorithms)

def store_session_token(self, *, redis_handler: RedisBase) -> bool:
""" Stores the created session token object as an hset in Redis
Expand Down

0 comments on commit 8c36b35

Please sign in to comment.