Skip to content

Conversation

kevinchalet
Copy link
Member

Fixes #2336.

This PR implements the last element needed for complete OAuth 2.0 Token Exchange: built-in validation of the resource and audience parameters and of the associated permissions.

Note: the OAuth 2.0 resource indicators specification defines the resource parameter for both authorization requests (and by extension pushed authorization requests) and token requests, but not the audience parameter, which is specific to the OAuth 2.0 Token Exchange: as such, authorization requests and non-OAuth 2.0 Token Exchange token requests that specify an audience parameter are automatically rejected indicating to the caller that a forbidden parameter was attached.

@kevinchalet kevinchalet added this to the 7.0.0-preview4 milestone Jun 8, 2025
@kevinchalet kevinchalet self-assigned this Jun 8, 2025
@kevinchalet kevinchalet merged commit 78ba0a3 into openiddict:dev Jun 8, 2025
6 checks passed
@kevinchalet kevinchalet deleted the audiences_resources_validation branch June 8, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement registered audiences/resources and per-client audiences and resources permissions support

1 participant