Skip to content

Commit

Permalink
Merge branch 'main' into stage
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Jan 8, 2024
2 parents cc0bb47 + 710981e commit 57fdf31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/appointment/dependencies/fxa.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_webhook_auth(request: Request, fxa_client: FxaClient = Depends(get_fxa_c
logging.error(f"Error decoding token. Key ID ({headers.get('kid')}) is missing from public list.")
return None

decoded_jwt = jwt.decode(header_token, jwk_pem, algorithms='RS256')
decoded_jwt = jwt.decode(header_token, jwk_pem, audience=fxa_client.client_id, algorithms='RS256')

# Final verification
if decoded_jwt.get('iss') != fxa_client.config.issuer:
Expand Down

0 comments on commit 57fdf31

Please sign in to comment.