cloudflare/workers-oauth-provider v0.4.0
cloudflare/workers-oauth-provider
Captured source
source ↗published Mar 31, 2026seen Jun 26captured 4whttp 200method plain
v0.4.0
Repository: cloudflare/workers-oauth-provider
Tag: v0.4.0
Published: 2026-03-31T18:06:08Z
Prerelease: no
Release notes:
Minor Changes
- #179 `57cdbe9` Thanks @mattzcarey! - Path-aware resource URIs (RFC 9728):
- Support path-suffixed well-known URLs for OAuth Protected Resource Metadata (RFC 9728 §3.1). Resources with path components (e.g.
https://example.com/mcp) now correctly serve metadata at/.well-known/oauth-protected-resource/mcpand return the derived resource identifier in theresourcefield. - Include the request path in the
resource_metadataURL withinWWW-Authenticateheaders (RFC 9728 §5.1). API endpoints with path components now advertise the correct path-suffixed metadata URL so clients can discover the resource-specific metadata. - Add
resourceMatchOriginOnlyoption for seamless migration. When enabled, resource downscoping validation compares only the origin (scheme + host + port) instead of exact URI matching, allowing grants issued before v0.4.0 (with origin-only resources) to work with path-aware resource requests without invalidating existing refresh tokens.