Skip to content

Document JWT revocation checks for non-header tokens and unrouted requests - #44

Merged
dj-nitehawk merged 1 commit into
FastEndpoints:devfrom
mbcrawfo:docs/jwt-revocation-token-sources
Sep 14, 2026
Merged

Document JWT revocation checks for non-header tokens and unrouted requests#44
dj-nitehawk merged 1 commit into
FastEndpoints:devfrom
mbcrawfo:docs/jwt-revocation-token-sources

Conversation

@mbcrawfo

Copy link
Copy Markdown
Contributor

Summary

Documents the JwtRevocationMiddleware behavior changes in FastEndpoints/FastEndpoints#1178:

  • Only endpoints that allow anonymous access skip the check. Requests that haven't been matched to an endpoint are checked.
  • Tokens the JWT bearer handler accepts from other sources (query string or cookie via OnMessageReceived, e.g. SSE/SignalR clients) are checked too.
  • This requires JwtBearerOptions.SaveToken, which AddAuthenticationJwtBearer() enables by default; apps using AddJwtBearer() directly must set it.

Validation

  • Changed file passes Prettier
  • Production documentation build passes

🤖 Generated with Claude Code

…uests

JwtRevocationMiddleware now also checks the token accepted by the JWT bearer
handler (query string, cookie) and requests with no matched endpoint. Note the
SaveToken requirement for apps that call AddJwtBearer() directly.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants