Repository navigation
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
There was a problem hiding this comment.
Code Review
This pull request updates the JWT decoding logic in google/auth/jwt.py to support cases where the audience (aud) claim in the token payload is a list of strings rather than a single string. It also adds corresponding unit tests in tests/test_jwt.py to verify both successful decoding with a matching audience list and failure when none of the audiences match. No review comments were provided, and the changes look correct and well-tested.
Hi!
jwt.decoderejects a token whoseaudclaim is an array, which RFC 7519 Section 4.1.3 allows. This accepts the token when any of its audiences is expected.