Commit af5f552
authored
fix: upgrade workers-oauth-provider to 0.3.0 for RFC 9728 Protected Resource Metadata (#315)
* fix: upgrade @cloudflare/workers-oauth-provider to 0.3.0 for RFC 9728 support
Upgrade the OAuth provider package from 0.0.13 to 0.3.0 across all apps
and packages. This adds automatic RFC 9728 Protected Resource Metadata
support, which resolves OAuth discovery failures for MCP clients that
implement strict OAuth discovery per the MCP spec.
Changes:
- Update @cloudflare/workers-oauth-provider from 0.0.13 to 0.3.0
- Remove now-unnecessary @ts-ignore/@ts-expect-error directives on
defaultHandler (type mismatch resolved upstream)
The new version automatically:
- Serves /.well-known/oauth-protected-resource with proper metadata
- Includes resource_metadata in WWW-Authenticate headers on 401 responses
- Supports authorization_servers discovery for route-scoped MCP resources
Closes #257
Closes #313
* format1 parent e51d34a commit af5f552
33 files changed
Lines changed: 57 additions & 71 deletions
File tree
- apps
- ai-gateway
- src
- auditlogs
- src
- autorag
- src
- browser-rendering
- src
- cloudflare-one-casb
- src
- dex-analysis
- src
- dns-analytics
- src
- docs-ai-search
- docs-autorag
- docs-vectorize
- graphql
- src
- logpush
- src
- radar
- src
- sandbox-container
- server
- workers-bindings
- src
- workers-builds
- src
- workers-observability
- src
- packages/mcp-common
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
| |||
0 commit comments