@cloudflare/workers-oauth-provider 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  `@cloudflare/workers-oauth-provider` adds OAuth 2.1 authorization to HTTP APIs and remote MCP servers running on Cloudflare Workers.
4
4
 
5
- > **Upgrading from 0.x, 1.0 or 1.1?** Read the [migration guide](docs/migration-1.0.md), which covers every change since 0.10 with code, or point your coding agent at [`skills/migrate-to-1.0/`](skills/migrate-to-1.0/SKILL.md), which also ships in the npm package.
5
+ > **Upgrading from 0.x, 1.0 or 1.1?** Read the [migration guide](docs/migration-1.x.md), which covers every change since 0.10 with code, or point your coding agent at [`skills/migrate-to-1.x/`](skills/migrate-to-1.x/SKILL.md), which also ships in the npm package.
6
6
 
7
7
  ## Install
8
8
 
@@ -255,7 +255,13 @@ interface EmaTrustedIssuer {
255
255
  issuer: string;
256
256
  /** HTTPS JWKS endpoint used to validate assertion signatures. */
257
257
  jwksUri: string;
258
- /** Allowed JWT signing algorithms for this issuer. Defaults to `['RS256']`. */
258
+ /**
259
+ * Allowed JWT signing algorithms for this issuer: `RS256`, `ES256`, or both.
260
+ * Defaults to `['RS256']`, so an IdP that signs ID-JAGs with `ES256` must list it.
261
+ * Use the algorithm the IdP signs ID-JAGs with, which its documentation or a
262
+ * sample assertion's `alg` header shows. `id_token_signing_alg_values_supported`
263
+ * describes ID tokens and may differ.
264
+ */
259
265
  algorithms?: string[];
260
266
  /** Expected authorization server audience. Defaults to this provider's issuer URL. */
261
267
  audience?: string;
@@ -1098,9 +1104,11 @@ interface OAuthProviderOptions<Env = Cloudflare.Env> {
1098
1104
  request?: Request;
1099
1105
  }) => Response | void;
1100
1106
  /**
1101
- * Accept RFC 8252 private-use URI scheme redirect URIs (for example `com.example.app:/oauth`)
1102
- * for native apps. By default redirect URIs must use `https`, or `http` on a loopback host, as
1103
- * MCP and OAuth 2.1 require; remote `http` is never accepted. Leave this off for MCP servers.
1107
+ * Let authorization requests use RFC 8252 private-use URI scheme redirect URIs (for example
1108
+ * `com.example.app:/oauth`), for native apps. By default a request's redirect URI must use
1109
+ * `https`, or `http` on a loopback host, as MCP and OAuth 2.1 require; remote `http` is never
1110
+ * accepted. Without this option a client can still register private-use URIs next to a compliant
1111
+ * one (Cursor does), but no request can use them.
1104
1112
  */
1105
1113
  allowPrivateUseRedirectUris?: boolean;
1106
1114
  /**