Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong azp value in TokenExchange JWT #794

Open
valdemon opened this issue Jan 19, 2025 · 1 comment
Open

Wrong azp value in TokenExchange JWT #794

valdemon opened this issue Jan 19, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@valdemon
Copy link
Contributor

valdemon commented Jan 19, 2025

Version affected: 2.1.10.

This change: 5aa7bdb introduced in the version 2.1.10 causes that a JWT resulting from the OAuth2 TokenExchange grant flow (https://www.rfc-editor.org/rfc/rfc8693.html) has a wrong value for the azp claim.

The azp if present, must be the ClientID of the requesting party (see: OpenID Connect Core 1.0), that is the Actor that requests the token on behalf of the Subject, see: https://www.rfc-editor.org/rfc/rfc8693.html#name-request.

This works as expected in the version 2.1.9

@ybelMekk ybelMekk added the bug Something isn't working label Feb 18, 2025
@ybelMekk
Copy link
Contributor

Hi, and thanks for reporting this issue!

It seems like the change introduced in commit 5aa7bdb in version 2.1.10 is affecting the azp claim in the JWT resulting from the OAuth2 TokenExchange grant flow.

We appreciate you pointing this out, and we’ll take a closer look to ensure that the azp claim correctly reflects the ClientID as defined in the spec.

If you have any further insights or additional details, feel free to share them! We're grateful for your help in making this library better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants