unstale

npm / oidc-provider

oidc-provider

What changed in oidc-provider 8 to 9, from its official release notes, upgrade guides and advisories. Also covers @types/oidc-provider. Sources checked 2026-12-05.

76 breaking13 security1 deprecations14 new APIs and options1 performance15 behavior and defaults30 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

oidc-provider 9110 changes

Breaking changes 41

  • Provider JWKS now rejects key_ops.

    9.14.0release notes

  • Unknown authorization detail types are rejected.

    9.11.4release notes

  • Loosely decoded Basic credentials are rejected.

    9.11.4release notes

  • Empty URL components are rejected.

    9.11.4release notes

  • Sparse metadata arrays are rejected.

    9.11.4release notes

  • Non-string htu claims are rejected.

    9.11.4release notes

  • Request bodies are required to be JSON objects.

    9.11.4release notes

  • Ambiguous JWT proof keys are rejected.

    9.11.4release notes

  • OAuth request syntax is enforced.

    9.11.4release notes

  • Opaque origins are rejected by default.

    9.11.4release notes

  • Non-string sector document entries are rejected.

    9.11.4release notes

  • Unrecognized array members are filtered before validation, changing how CIMD array values are handled.

    9.7.1release notes

  • The Provider no longer supplies a catch-all 404 Not Found error handler.

    9.0.0release notes

  • Accessing protected resources without an access token now returns HTTP 401 instead of 400.

    9.0.0release notes

  • The cookie session sameSite default changes from none to lax; POST authorization and logout support requires setting it to none.

    9.0.0release notes

  • Support for Ed448 has been removed.

    9.0.0release notes

  • Authorization and logout endpoints no longer accept POST by default; enable this option to restore POST support, and set cookies.long.sameSite to none.

    9.0.0release notes

  • Support for FAPI 1.0 ID2 has been removed.

    9.0.0release notes

  • FAPI profiles no longer force PKCE; configure pkce.required to enforce it.

    9.0.0release notes

  • DPoP support is enabled by default.

    9.0.0release notes

  • Enable Request Objects by Value with features.requestObjects.enabled instead of features.requestObjects.request.

    9.0.0release notes

  • The features.requestObjects.mode configuration has been removed.

    9.0.0release notes

  • This setting is replaced by features.requestObjects.enabled.

    9.0.0release notes

  • Outgoing HTTP requests now use global fetch(); configure the new fetch option with a fetch-compatible call signature and return values.

    9.0.0release notes

  • The httpOptions configuration option has been removed in favor of fetch.

    9.0.0release notes

  • Issued ID Tokens no longer include several optional hash claims across CIBA, authorization code, device, refresh token, and implicit grants, with the stated FAPI 1.0 Final exception for s_hash.

    9.0.0release notes

  • Passing a Request Object by Reference using JAR request_uri is no longer supported.

    9.0.0release notes

  • JWK Key IDs must now be unique across the server's keys.

    9.0.0release notes

  • Issued JSON Web Tokens omit the generic typ: JWT header.

    9.0.0release notes

  • The legacy sameSite cookie fallback has been removed.

    9.0.0release notes

  • Node.js 18.x is no longer supported.

    9.0.0release notes

  • Node.js 20.x is no longer supported.

    9.0.0release notes

  • The pkce.methods configuration has been removed.

    9.0.0release notes

  • PKCE is no longer required by default unless RFC9700 or a profile requires it; configure the helper to require it.

    9.0.0release notes

  • The Provider.Account getter has been removed.

    9.0.0release notes

  • Provider is now the Koa application instance, changing the application object exposed by the Provider API.

    9.0.0release notes

  • Matched Provider routes now end the HTTP request, so downstream Koa middleware is no longer executed; upstream control flows are unaffected.

    9.0.0release notes

  • Support for secp256k1 / ES256K has been removed.

    9.0.0release notes

  • Userinfo requests that include a bearer token and DPoP now fail.

    9.0.0release notes

  • When DPoP is enabled, userinfo now includes both DPoP and bearer challenges.

    9.0.0release notes

  • Support for X448 has been removed.

    9.0.0release notes

Security 13

  • The attestation proof-of-possession jti is validated.

    9.11.4release notes

  • Audience claim members are validated.

    9.11.4release notes

  • JWT proof identity claims are validated.

    9.11.4release notes

  • Key attestation contents are validated.

    9.11.4release notes

  • Model payloads are filtered safely.

    9.11.4release notes

  • Nested option validation is hardened.

    9.11.4release notes

  • Default memory storage is isolated per provider, preventing providers from sharing the same default storage.

    9.11.2release notes

  • dpop_jkt is recognized only when DPoP is enabled.

    9.11.1release notes

  • Default HTML helper output is escaped in shouldChange functions.

    9.8.5release notes

  • CIBA notification tokens are validated.

    9.8.3release notes

  • Malformed DPoP htu values are rejected with a clearer message.

    9.8.3release notes

  • Debug data sent to development-only interactions is now HTML-escaped.

    9.8.2release notes

  • Random identifiers now use approximately 256 bits of randomness instead of approximately 126 bits.

    9.0.0release notes

Deprecations 1

New APIs and options 12

  • Adds support for OpenID4VCI credential encryption.

    9.14.0release notes

  • Built-in sender constraint checks are exposed for use by developers.

    9.12.2release notes

  • Grant helpers were added for custom grant implementers.

    9.12.0release notes

  • Allows customizing the expected audience of the OpenID4VCI Credential Endpoint.

    9.11.0release notes

  • Adds experimental support for OpenID for Verifiable Credential Issuance.

    9.10.0release notes

  • Adds experimental support for Client ID Metadata Document (CIMD).

    9.7.0release notes

  • Adds configuration for limiting external resource body limits.

    9.7.0release notes

  • CIBA flows now support RAR.

    9.6.0release notes

  • Access Token revocation can now optionally revoke the underlying grant.

    9.0.0release notes

  • Support was added for the fully-specified Ed25519 JWS Algorithm Identifier.

    9.0.0release notes

  • Experimental support was added for external signing keys, such as keys held in a KMS or HSM.

    9.0.0release notes

  • A static getter exposes the current request's ctx.

    9.0.0release notes

Performance 1

  • Encryption and key derivation no longer block the main thread.

    9.0.0release notes

Behavior and default changes 12

  • Updates CIMD support to draft -03.

    9.15.0release notes

  • Query access tokens are ignored rather than rejected when they are disabled.

    9.15.0release notes

  • Allows omitting redirect_uri when using S256 PKCE.

    9.15.0release notes

  • Attestation client auth is updated to draft-12.

    9.13.0release notes

  • Rich Authorization Requests graduated.

    9.12.0release notes

  • Updates Attestation-Based Client Authentication to -10.

    9.10.0release notes

  • Updates CIMD support to draft -02, which may affect client metadata behavior.

    9.9.0release notes

  • Validation for native app custom URI schemes is relaxed, allowing schemes that were previously rejected.

    9.8.1release notes

  • rpMetadataChoices is now stable, so developers can rely on it as a stable configuration option.

    9.8.0release notes

  • Prevents fetching special-use IP address resources.

    9.7.0release notes

  • The FAPI 2.0 implementation was updated to FAPI 2.0 Final.

    9.0.0release notes

  • The configuration helper is now invoked during opaque Access Token revocation; its default return for that case remains false.

    9.0.0release notes

Fixes and other changes 30

  • Authorization headers with multiple spaces are accepted.

    9.15.0release notes

  • Corrects the default refresh token policies.

    9.15.0release notes

  • Corrects error codes returned by the token endpoint.

    9.15.0release notes

  • Extends DPoP replay record retention.

    9.14.0release notes

  • Rounds up JWT client assertion replay expiry.

    9.14.0release notes

  • Current resource scopes are applied at token issuance.

    9.13.2release notes

  • Key attestations are now accepted without an issuer claim.

    9.13.1release notes

  • Restores trust metadata for PAR parameters.

    9.12.1release notes

  • Missing interaction policy removals are now ignored.

    9.12.0release notes

  • String comparisons now use UTF-8 byte lengths.

    9.11.5release notes

  • Strict compact JWT decoders are used.

    9.11.4release notes

  • Credential configuration references are validated.

    9.11.4release notes

  • Individual claim request shapes are validated.

    9.11.4release notes

  • Registered redirect URIs are compared exactly.

    9.11.4release notes

  • Empty Request Object parameters are omitted.

    9.11.4release notes

  • Undefined response parameters are omitted.

    9.11.3release notes

  • Grant parameters are isolated by feature, avoiding parameters for one feature affecting another.

    9.11.2release notes

  • Memory adapter entries now expire correctly, so developers can rely on configured entry expiration.

    9.11.2release notes

  • The CIMD metadata document cache is now bounded.

    9.11.2release notes

  • The grant.revoked event is no longer emitted twice during logout.

    9.11.1release notes

  • ID Token claims are resolved using the effective scope.

    9.11.1release notes

  • A skipped refresh token lookup is no longer dereferenced.

    9.11.1release notes

  • Server challenges are derived from the clock rather than a timer.

    9.11.1release notes

  • Stale clients are ignored during logout confirmation.

    9.9.1release notes

  • No longer calls revokeByGrantId when grantId is missing.

    9.8.6release notes

  • The CIBA user code is passed to the verifier.

    9.8.3release notes

  • Signing keys are selected for JWT access tokens.

    9.8.3release notes

  • Registration token policy is awaited, so its result is handled before processing continues.

    9.8.3release notes

  • A mismatch between grant_types and response_types is fixed up instead of being rejected.

    9.7.1release notes

  • Requiring PAR no longer affects CIBA and device authorization grant flows.

    9.6.1release notes

oidc-provider 840 changes

Breaking changes 35

  • Bearer tokens can no longer be passed using the access_token query string parameter by default; this option can restore the behavior.

    8.0.0release notes

  • The v6.x method of setting access token formats has been completely removed.

    8.0.0release notes

  • This client property must be set when authorization_encrypted_response_alg is set.

    8.0.0release notes

  • Default clock skew tolerance is now 15 seconds instead of 0 seconds; configure this option to revert.

    8.0.0release notes

  • Issuing JWEs with cty set to json is no longer supported.

    8.0.0release notes

  • Default allowed DPoP signing algorithms are now ES256 and EdDSA only; RSA algorithms can be restored through this option.

    8.0.0release notes

  • This configuration method was renamed to enabledJWA.clientAuthSigningAlgValues.

    8.0.0release notes

  • For access tokens issued by the authorization endpoint, this is now invoked only for opaque-format access tokens.

    8.0.0release notes

  • CIBA no longer automatically enables JAR; configure request objects separately to support CIBA with JAR.

    8.0.0release notes

  • This configuration option is required when FAPI is enabled.

    8.0.0release notes

  • PAR no longer automatically enables JAR; configure request objects separately to support PAR with JAR.

    8.0.0release notes

  • Pushed Authorization Requests are now enabled by default; this option can revert that behavior.

    8.0.0release notes

  • Registration management update actions now rotate registration access tokens by default.

    8.0.0release notes

  • Request Object use now defaults to the stricter RFC 9101 definition rather than OIDC Core 1.0.

    8.0.0release notes

  • request_uri parameter support is now disabled by default; this option can restore it.

    8.0.0release notes

  • dnsLookup now defaults to node:dns lookup instead of cacheable-lookup.

    8.0.0release notes

  • The returned lookup property was renamed to dnsLookup.

    8.0.0release notes

  • The returned timeout property was removed; return an AbortSignal instance as signal instead.

    8.0.0release notes

  • This client property must be set when id_token_encrypted_response_alg is set.

    8.0.0release notes

  • This non-standard client metadata property was removed; token_endpoint_auth_method now indicates how the client authenticates at the introspection endpoint.

    8.0.0release notes

  • This non-standard client metadata property was removed; token_endpoint_auth_signing_alg now indicates how the client authenticates at the introspection endpoint.

    8.0.0release notes

  • This client property must be set when introspection_encrypted_response_alg is set.

    8.0.0release notes

  • Node.js LTS 18 (^18.12.0) is now required; support for Node.js 12, 14, and 16 was removed.

    8.0.0release notes

  • The none JWS algorithm has been completely removed.

    8.0.0release notes

  • The package is now ESM-only: import the default Provider export using import or import(), with errors and interactionPolicy as named exports.

    8.0.0release notes

  • PASETO Access Token format support was removed.

    8.0.0release notes

  • PBKDF2-based JWE Key Management Algorithms have been completely removed.

    8.0.0release notes

  • The Device Authorization Endpoint no longer supports the request_uri parameter.

    8.0.0release notes

  • This non-standard client metadata property was removed; token_endpoint_auth_method now indicates how the client authenticates at the revocation endpoint.

    8.0.0release notes

  • This non-standard client metadata property was removed; token_endpoint_auth_signing_alg now indicates how the client authenticates at the revocation endpoint.

    8.0.0release notes

  • The RSA1_5 JWE Key Management Algorithm has been completely removed.

    8.0.0release notes

  • This configuration method was renamed to clientAuthMethods.

    8.0.0release notes

  • The default Authorization Code duration is now 60 seconds instead of 10 minutes.

    8.0.0release notes

  • This client property must be set when userinfo_encrypted_response_alg is set.

    8.0.0release notes

  • The userinfo endpoint no longer echoes this header; a custom pre-middleware can restore the behavior.

    8.0.0release notes

New APIs and options 2

Behavior and default changes 3

  • Omitting redirect_uri when a single redirect URI is registered is enabled by default again.

    8.0.0release notes

  • DPoP support was updated to draft-11.

    8.0.0release notes

  • FAPI and CIBA no longer force CIBA clients to use JAR; set this global policy to true to require signed request objects.

    8.0.0release notes