Repository navigation
docs: show JWT access token validation and multiple issuers for resource servers - #962
Merged
lepture merged 2 commits intoOct 19, 2026
Merged
Conversation
…rce servers Document validating RFC 9068 JWT access tokens in the Flask resource server guide, and a tested pattern for accepting tokens from an approved list of issuers. Closes authlib#671
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 #671.
The resource server guide only covered opaque tokens (database or introspection). This adds a "JWT access tokens" section for
JWTBearerTokenValidator, and a pattern for accepting tokens from an approved list of authorization servers, which is what the issue asks for.For several issuers the example keeps one single-issuer validator per trusted
issand picks it from the unverifiedissclaim. The signature is still verified with that issuer's keys. I ran the exact snippet against four tokens: one from each trusted issuer (200), one from an unknown issuer (401), and one claiming a trusted issuer but signed with a different key (401).Docs only. Includes a changelog fragment.