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 initoidc-provider 9110 changes
Breaking changes 41
Provider JWKS now rejects key_ops.
Unknown authorization detail types are rejected.
Loosely decoded Basic credentials are rejected.
Empty URL components are rejected.
Sparse metadata arrays are rejected.
Non-string htu claims are rejected.
Request bodies are required to be JSON objects.
Ambiguous JWT proof keys are rejected.
OAuth request syntax is enforced.
Opaque origins are rejected by default.
Non-string sector document entries are rejected.
Unrecognized array members are filtered before validation, changing how CIMD array values are handled.
The Provider no longer supplies a catch-all 404 Not Found error handler.
Accessing protected resources without an access token now returns HTTP 401 instead of 400.
The cookie session sameSite default changes from none to lax; POST authorization and logout support requires setting it to none.
Support for Ed448 has been removed.
Authorization and logout endpoints no longer accept POST by default; enable this option to restore POST support, and set cookies.long.sameSite to none.
Support for FAPI 1.0 ID2 has been removed.
FAPI profiles no longer force PKCE; configure pkce.required to enforce it.
DPoP support is enabled by default.
Enable Request Objects by Value with features.requestObjects.enabled instead of features.requestObjects.request.
The features.requestObjects.mode configuration has been removed.
This setting is replaced by features.requestObjects.enabled.
Outgoing HTTP requests now use global fetch(); configure the new fetch option with a fetch-compatible call signature and return values.
The httpOptions configuration option has been removed in favor of fetch.
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.
Passing a Request Object by Reference using JAR request_uri is no longer supported.
JWK Key IDs must now be unique across the server's keys.
Issued JSON Web Tokens omit the generic typ: JWT header.
The legacy sameSite cookie fallback has been removed.
Node.js 18.x is no longer supported.
Node.js 20.x is no longer supported.
The pkce.methods configuration has been removed.
PKCE is no longer required by default unless RFC9700 or a profile requires it; configure the helper to require it.
The Provider.Account getter has been removed.
Provider is now the Koa application instance, changing the application object exposed by the Provider API.
Matched Provider routes now end the HTTP request, so downstream Koa middleware is no longer executed; upstream control flows are unaffected.
Support for secp256k1 / ES256K has been removed.
Userinfo requests that include a bearer token and DPoP now fail.
When DPoP is enabled, userinfo now includes both DPoP and bearer challenges.
Support for X448 has been removed.
Security 13
The attestation proof-of-possession jti is validated.
Audience claim members are validated.
JWT proof identity claims are validated.
Key attestation contents are validated.
Model payloads are filtered safely.
Nested option validation is hardened.
Default memory storage is isolated per provider, preventing providers from sharing the same default storage.
dpop_jkt is recognized only when DPoP is enabled.
Default HTML helper output is escaped in shouldChange functions.
CIBA notification tokens are validated.
Malformed DPoP htu values are rejected with a clearer message.
Debug data sent to development-only interactions is now HTML-escaped.
Random identifiers now use approximately 256 bits of randomness instead of approximately 126 bits.
Deprecations 1
The .app getter has been deprecated.
New APIs and options 12
Adds support for OpenID4VCI credential encryption.
Built-in sender constraint checks are exposed for use by developers.
Grant helpers were added for custom grant implementers.
Allows customizing the expected audience of the OpenID4VCI Credential Endpoint.
Adds experimental support for OpenID for Verifiable Credential Issuance.
Adds experimental support for Client ID Metadata Document (CIMD).
Adds configuration for limiting external resource body limits.
CIBA flows now support RAR.
Access Token revocation can now optionally revoke the underlying grant.
Support was added for the fully-specified Ed25519 JWS Algorithm Identifier.
Experimental support was added for external signing keys, such as keys held in a KMS or HSM.
A static getter exposes the current request's ctx.
Performance 1
Encryption and key derivation no longer block the main thread.
Behavior and default changes 12
Updates CIMD support to draft -03.
Query access tokens are ignored rather than rejected when they are disabled.
Allows omitting redirect_uri when using S256 PKCE.
Attestation client auth is updated to draft-12.
Rich Authorization Requests graduated.
Updates Attestation-Based Client Authentication to -10.
Updates CIMD support to draft -02, which may affect client metadata behavior.
Validation for native app custom URI schemes is relaxed, allowing schemes that were previously rejected.
rpMetadataChoices is now stable, so developers can rely on it as a stable configuration option.
Prevents fetching special-use IP address resources.
The FAPI 2.0 implementation was updated to FAPI 2.0 Final.
The configuration helper is now invoked during opaque Access Token revocation; its default return for that case remains false.
Fixes and other changes 30
Authorization headers with multiple spaces are accepted.
Corrects the default refresh token policies.
Corrects error codes returned by the token endpoint.
Extends DPoP replay record retention.
Rounds up JWT client assertion replay expiry.
Current resource scopes are applied at token issuance.
Key attestations are now accepted without an issuer claim.
Restores trust metadata for PAR parameters.
Missing interaction policy removals are now ignored.
String comparisons now use UTF-8 byte lengths.
Strict compact JWT decoders are used.
Credential configuration references are validated.
Individual claim request shapes are validated.
Registered redirect URIs are compared exactly.
Empty Request Object parameters are omitted.
Undefined response parameters are omitted.
Grant parameters are isolated by feature, avoiding parameters for one feature affecting another.
Memory adapter entries now expire correctly, so developers can rely on configured entry expiration.
The CIMD metadata document cache is now bounded.
The grant.revoked event is no longer emitted twice during logout.
ID Token claims are resolved using the effective scope.
A skipped refresh token lookup is no longer dereferenced.
Server challenges are derived from the clock rather than a timer.
Stale clients are ignored during logout confirmation.
No longer calls revokeByGrantId when grantId is missing.
The CIBA user code is passed to the verifier.
Signing keys are selected for JWT access tokens.
Registration token policy is awaited, so its result is handled before processing continues.
A mismatch between grant_types and response_types is fixed up instead of being rejected.
Requiring PAR no longer affects CIBA and device authorization grant flows.
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.
The v6.x method of setting access token formats has been completely removed.
This client property must be set when authorization_encrypted_response_alg is set.
Default clock skew tolerance is now 15 seconds instead of 0 seconds; configure this option to revert.
Issuing JWEs with cty set to json is no longer supported.
Default allowed DPoP signing algorithms are now ES256 and EdDSA only; RSA algorithms can be restored through this option.
This configuration method was renamed to enabledJWA.clientAuthSigningAlgValues.
For access tokens issued by the authorization endpoint, this is now invoked only for opaque-format access tokens.
CIBA no longer automatically enables JAR; configure request objects separately to support CIBA with JAR.
This configuration option is required when FAPI is enabled.
PAR no longer automatically enables JAR; configure request objects separately to support PAR with JAR.
Pushed Authorization Requests are now enabled by default; this option can revert that behavior.
Registration management update actions now rotate registration access tokens by default.
Request Object use now defaults to the stricter RFC 9101 definition rather than OIDC Core 1.0.
request_uri parameter support is now disabled by default; this option can restore it.
dnsLookup now defaults to node:dns lookup instead of cacheable-lookup.
The returned lookup property was renamed to dnsLookup.
The returned timeout property was removed; return an AbortSignal instance as signal instead.
This client property must be set when id_token_encrypted_response_alg is set.
This non-standard client metadata property was removed; token_endpoint_auth_method now indicates how the client authenticates at the introspection endpoint.
This non-standard client metadata property was removed; token_endpoint_auth_signing_alg now indicates how the client authenticates at the introspection endpoint.
This client property must be set when introspection_encrypted_response_alg is set.
Node.js LTS 18 (^18.12.0) is now required; support for Node.js 12, 14, and 16 was removed.
The none JWS algorithm has been completely removed.
The package is now ESM-only: import the default Provider export using import or import(), with errors and interactionPolicy as named exports.
PASETO Access Token format support was removed.
PBKDF2-based JWE Key Management Algorithms have been completely removed.
The Device Authorization Endpoint no longer supports the request_uri parameter.
This non-standard client metadata property was removed; token_endpoint_auth_method now indicates how the client authenticates at the revocation endpoint.
This non-standard client metadata property was removed; token_endpoint_auth_signing_alg now indicates how the client authenticates at the revocation endpoint.
The RSA1_5 JWE Key Management Algorithm has been completely removed.
This configuration method was renamed to clientAuthMethods.
The default Authorization Code duration is now 60 seconds instead of 10 minutes.
This client property must be set when userinfo_encrypted_response_alg is set.
The userinfo endpoint no longer echoes this header; a custom pre-middleware can restore the behavior.
New APIs and options 2
DPoP nonces are now supported.
A new UnmetAuthenticationRequirements error was added.
Behavior and default changes 3
Omitting redirect_uri when a single redirect URI is registered is enabled by default again.
DPoP support was updated to draft-11.
FAPI and CIBA no longer force CIBA clients to use JAR; set this global policy to true to require signed request objects.