cloudflare/workers-oauth-provider v0.7.0
cloudflare/workers-oauth-provider
Captured source
source ↗v0.7.0
Repository: cloudflare/workers-oauth-provider
Tag: v0.7.0
Published: 2026-05-21T12:07:17Z
Prerelease: no
Release notes:
Minor Changes
- #208 `c59c37b` Thanks @mattzcarey! - Experimentally support MCP Enterprise-Managed Authorization ID-JAG assertions through the JWT bearer grant.
- #206 `13ff269` Thanks @itsandy-canva! - Expose
grantIdtotokenExchangeCallbackviaTokenExchangeCallbackOptions.
Implementations of tokenExchangeCallback already received userId and clientId, but had no way to identify which specific grant the library was operating on. This made it impossible to surgically revoke a single grant from the callback (e.g. on a terminal upstream refresh failure) — implementations had to either sweep all grants for a (userId, clientId) pair (racy under concurrent refreshes) or maintain their own out-of-band mapping.
grantId is now provided alongside userId so callbacks can pass them directly to OAuthHelpers.revokeGrant. Populated for all three grant types (authorization_code, refresh_token, token_exchange). Stable across refreshes for the lifetime of the grant.
Notability
notability 3.0/10Routine library release, not AI-related