Skip to content

docs: show JWT access token validation and multiple issuers for resource servers - #962

Merged
lepture merged 2 commits into
authlib:mainfrom
Xander-AJ:docs/resource-server-jwt-issuers
Oct 19, 2026
Merged

lepture merged 2 commits into
authlib:mainfrom
Xander-AJ:docs/resource-server-jwt-issuers

Conversation

@Xander-AJ

@Xander-AJ Xander-AJ commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

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 iss and picks it from the unverified iss claim. 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.

…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
@lepture
lepture merged commit 8760b23 into authlib:main Oct 19, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add token handling example for a Resource Server

2 participants