Skip to content

Commit

Permalink
fix: correct description of InvalidClaimsError for invalid audience
Browse files Browse the repository at this point in the history
  • Loading branch information
rjw57 committed Nov 20, 2024
1 parent e72de02 commit 5b7035e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion federatedidentity/_verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def verify_id_token(
# Check that the token "aud" claim matches at least one of our expected audiences.
if not any(unvalidated_claims["aud"] == audience for audience in valid_audiences):
raise InvalidClaimsError(
f"Token issuer '{unvalidated_claims['aud']}' did not match any valid issuer"
f"Token audience '{unvalidated_claims['aud']}' did not match any valid audience"
)

# Determine which issuer matches the token.
Expand Down

0 comments on commit 5b7035e

Please sign in to comment.