Repository navigation
oauth: support the JWT bearer grant - #2507
Draft
mjcheetham wants to merge 3 commits into
Draft
mjcheetham wants to merge 3 commits into
mjcheetham wants to merge 3 commits into
Conversation
This comment was marked as spam.
This comment was marked as spam.
Technically application/x-www-form-urlencoded data can contain repeated fields. Some OAuth RFCs allow for repeated fields, so we should support this. Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
Allow providers to exchange an existing access or refresh token for an OAuth access token, using the RFC 8693 token exchange grant. This enables authentication flows where a token issued by an external identity provider must be exchanged for one accepted by the host. Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
Permit exchanging caller-provided JWT assertions for OAuth access tokens using RFC 7523's JWT bearer grant. Keep assertions opaque and allow requests to omit scope so the authorization server can apply its configured defaults. Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
mjcheetham
force-pushed
the
oauth-jwtgrant
branch
from
November 17, 2026 15:08
dc4a3a0 to
2005615
Compare
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.
Following #2500, add support for the RFC 7523 JWT bearer grant to the shared OAuth2 client. This lets callers exchange a JWT assertion for an OAuth access token.
Send the assertion as provided without parsing it, and omit the
scopeparameter when no scopes are requested so the authorization server can apply its defaults. Extend the in-memory OAuth server and add coverage for the grant flow.RFC 7523 section 2.1