Repository navigation
fix(oidc): use a string for the default ID token aud - #1062
Open
ratomirjovanovic wants to merge 2 commits into
Open
ratomirjovanovic wants to merge 2 commits into
ratomirjovanovic wants to merge 2 commits into
Conversation
Without aud from get_client_claims, the ID token had [client_id]. OpenID Connect Core section 2 allows a single string for one audience, and with the list RP-initiated logout cannot resolve the client from an id_token_hint sent without client_id. Closes authlib#1054
…-string # Conflicts: # tests/flask/test_oauth2/test_openid_code_grant.py
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1054
When
get_client_claimsreturns noaud,get_compatible_claimsnow sets it to the client ID as a string instead of[client_id]. I updated theget_client_claimsdocstring and the Flask OpenID Connect example that asserted the list.test_default_aud_claimintest_openid_code_grant.pycovers it (itsget_client_claimsonly returnsiss). The changelog fragment is under Changed, since servers that read the claim back get a string now.Updated with current main.
test_user_info_does_not_replace_protocol_claims, added there since, expected the list, so I changed that assertion to the string.Ran
uv run --all-groups pytest tests docs(2888 passed, 49 skipped) andprek run --all-files.