From e88b1afcf78d31d83cd495746cc1bdef51d9da25 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 28 Dec 2022 09:57:55 +0100 Subject: [PATCH] fixes --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 4594ba5..6a7838a 100644 --- a/app/main.py +++ b/app/main.py @@ -259,7 +259,7 @@ async def auth_v1_code(request: Request): @app.post('/auth/v1/token') async def auth_v1_token(request: Request): j, cur_time = json.loads((await request.body()).decode('utf-8')), datetime.utcnow() - payload = jwt.decode(token=j['auth_code'], key=jwt_decode_key) + payload = jwt.decode(token=j['auth_code'], key=jwt_decode_key, algorithms=ALGORITHMS.RS256, options={'verify_aud': False}) origin_ref = payload['origin_ref'] logging.info(f'> [ auth ]: {origin_ref}: {j}')