Repository navigation
Releases
Duende CLI 0.0.6
This release of the Duende CLI makes the Duende Storage plugin work reliably next to dotnet restore and on machines without network access. Use it with Duende Storage 2.0.0-preview.7 to run duende storage migrate and duende storage verify.
What's changed
- Plugins install in the standard NuGet layout. The CLI installs a plugin, such as
Duende.Storage.CliPlugin, into the NuGet packages folder the same waydotnet restoredoes. Before, the two layouts clashed: after a restore of the plugin package, the CLI failed with "Could not find plugin assembly", and the storage commands were not available. - A restored plugin works offline. If the plugin package is already in the NuGet packages folder, for example on a build agent that restored it in advance, the CLI uses it without going to nuget.org.
- Plugins installed by an earlier CLI version are installed again in the new layout the first time you use them. You don't need to do anything.
- The CLI now ships
System.Security.Cryptography.Pkcs10.0.14.
Full Changelog: cli-0.0.5...cli-0.0.6
Duende Storage 2.0.0-preview.7
This is a preview release of Duende Storage 2.0, and the Storage version IdentityServer 8.1.0-preview.7 builds on. It adds a schema migration and better tools to check your database.
Before you upgrade
Migrate your database. This release changes the Storage schema. Migrate every storage instance before the new version starts serving traffic:
duende storage migrate --provider <provider> --connection-string <connection-string>
You can also call IStorageInstanceSchema.MigrateAsync in code. Run it from one place, such as a deployment step, not from every app instance at startup.
Earlier previews didn't enforce the relationships between stored records, so a database can contain links to records that were deleted. The migration removes those links. Nothing else is deleted.
What's new
- Check a database before you deploy.
duende storage verifychecks that a database's schema is complete and correct, without changing anything. Use it in a deployment pipeline or a health check. - Migrations check their result. A migration, or
MigrateAsyncon a schema that is already current, now also checks the schema, and fails if something is missing or different. An app that migrates at startup won't start on a schema that has drifted. - A clear error when you forget to migrate. If the Storage tables don't exist, the error tells you to run
duende storage migrate, instead of a raw database error about a missing table.
Breaking changes
- Extensible attributes are removed. The
Duende.Storage.EntityAttributeValuenamespace is no longer part of Duende Storage.
Full Changelog: storage-2.0.0-preview.6...storage-2.0.0-preview.7
Duende IdentityServer 8.1.0-preview.7
This is a preview release of IdentityServer 8.1. It builds on Duende Storage 2.0.0-preview.7.
User Management and Spaces are now part of IdentityServer and ship in the Duende.IdentityServer package. There are no new Duende.UserManagement or Duende.Spaces packages.
The NuGet Packages for User Management and Spaces will be deprecated and should no longer be used.
Upgrading from an earlier preview
- Run the Storage migration. Duende Storage 2.0.0-preview.7 adds schema version 3, which adds foreign keys to the links between stored entities. Migrate every storage instance before you deploy, with the Duende CLI (
duende storage migrate) or in code withIStorageInstanceSchema.MigrateAsync. The migration first deletes links whose entity no longer exists. See the Duende Storage 2.0.0-preview.7 release notes. - Re-create stored API resources, clients and SAML service providers. If you store API resources, clients or SAML service providers in Duende Storage, their scopes are now stored as links to the API scopes and identity resources, not as names. Those saved by an earlier preview read back with no scopes. Save them again with their scopes, or re-create them.
- Remove the User Management and Spaces packages. Remove your references to
Duende.UserManagement,Duende.UserManagement.IdentityServer8andDuende.Spaces. The types are inDuende.IdentityServernow, with the same namespaces and names. CallAddUserManagement()andAddSpaces()on the IdentityServer builder. - Entity Framework server-side sessions. The
ServerSideSessionstable gets aVersioncolumn. Generate and apply a migration before you deploy. Without it, every session read and delete fails.
Security fixes
This preview includes the fixes for the advisories published with IdentityServer 8.0.11:
- GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
- GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
- GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
- GHSA-wcc6-7mjx-g6j5: Incorrectly formatted SAML messages can cause a denial of service.
- GHSA-hmrv-xfgm-wgh2: The SAML service provider doesn't validate bearer SubjectConfirmationData.
- GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
- GHSA-6xhh-5qhq-m9vf: The SAML service provider ends a session when it receives a logout request from a different identity provider.
- GHSA-hhqg-4hp5-4v5h: The SAML service provider accepts a changed RelayState in signed HTTP-Redirect messages.
The upgrade notes in the IdentityServer 8.0.11 release notes apply to this preview too: mTLS, introspection, end session, server-side sessions, DPoP, SAML XML limits, SAML logout with an external login callback, and SAML logout with SameSite.
Breaking changes
- Server-side session store.
IServerSideSessionStore.UpdateSessionAsyncnow returnsTask<bool>, and saves a session only while the version it was read at is still the stored version. Custom stores and decorators must return the result and do this check. Code that calls it should check the result:falsemeans the save didn't happen. - Fixed
IssuerUriwith Spaces. A host that registers Spaces and setsIdentityServerOptions.IssuerUrifails at startup, because every space would get the same issuer. SetSpacesOptions.AllowSharedIssuerUrito use one issuer on purpose. - Lowercase space paths and match patterns. A space path resolves only when the prefix and the space segment are lowercase; other spellings get a 404.
SpacesOptions.SpacePathPrefixmust be lowercase.ISpaceAdminaccepts only lowercase ASCII match patterns. - Dynamic provider options with Spaces. With Spaces, the host fails at startup when the options cache for a dynamic provider type isn't space-aware, for example when you registered your own
IOptionsMonitorCache<T>for it. - Scopes in the Admin API. Client and SAML service provider
AllowedScopes, and API resource scopes, must name existing scopes, and match them exactly, including case. A client can't listoffline_access; useAllowOfflineAccess. API scope and identity resource names must be unique across both kinds. An API scope or identity resource that is still in use can't be deleted. - Client validation in the Admin API. Client URIs are validated on create and update, and adding or removing a client secret validates the whole client. The storage client store validates the clients it returns, like the other client stores.
What's changed
Spaces
- In-memory operational stores keep each space's data separate.
- Deleting a space purges its data in every storage instance, and pool IDs of purged spaces aren't reused automatically.
- SCIM authenticates tokens per space by default. New options
ReadAuthorizationPolicyNameandWriteAuthorizationPolicyNamelet you set separate read and write policies. - With signing keys shared by every space,
UseIdentityServer()logs a warning. - Idle cached dynamic provider state is released per space, and extended properties survive the Spaces cache.
Storage
- Signing-key creation and background jobs (outbox processing, storage purge and server-side session cleanup) are coordinated across nodes when you use Duende Storage.
- Renaming an API scope or identity resource is reflected everywhere it's used.
User Management
- SCIM is no longer experimental. You no longer need to suppress the
duende_experimentaldiagnostic. - OTP email recipient addresses are masked in logs.
Fixes
- Concurrent updates to a server-side session no longer silently overwrite each other.
- Replacing a server-side session only revokes grants of clients whose lifetime is coordinated with the user session.
- Redirect scripts accept only HTTP and HTTPS destinations.
- Paging back before the first page of server-side sessions works.
- Stopping an IdentityServer host synchronously from a thread with a single-threaded synchronization context no longer hangs.
Full Changelog: is-8.1.0-preview.6...is-8.1.0-preview.7
Duende IdentityServer 8.0.11
We've published several security advisories for Duende products including IdentityServer and BFF, along with updated packages that fix them. We strongly recommend updating to the latest patched releases.
The fixes that aren't SAML-specific are also released in 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.
Security fixes
- GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
- GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
- GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
- GHSA-wcc6-7mjx-g6j5: Incorrectly formatted SAML messages can cause a denial of service.
- GHSA-hmrv-xfgm-wgh2: The SAML service provider doesn't validate bearer SubjectConfirmationData.
- GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
- GHSA-6xhh-5qhq-m9vf: The SAML service provider ends a session when it receives a logout request from a different identity provider.
- GHSA-hhqg-4hp5-4v5h: The SAML service provider accepts a changed RelayState in signed HTTP-Redirect messages.
Upgrade notes
-
mTLS: if you call
AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme,Certificateby default) is registered, usually withAddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only ifAllowedCertificateTypesincludesCertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate. -
Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
-
End session: an
id_token_hintthat isn't an ID token, or that has nosubclaim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a customtypheader, add it toIdentityServerOptions.IdentityTokenJwtTypes. -
Server-side sessions: a user who signs in on a browser that still carries another user's session is signed out, and has to sign in a second time. If you replaced
IServerSideTicketStorewith your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make. -
DPoP: if you override
DefaultDPoPProofValidator.ValidateSignatureAsync, replaced theHandlerofJwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check. -
SAML XML limits: SAML messages whose XML elements are nested deeper than
MaxXmlNestingDepth(32 by default) are rejected. You can change the limit for the identity provider (SamlOptions.MaxXmlNestingDepth), for service providers configured in code (SamlServiceProviderOptions.MaxXmlNestingDepth) and for SAML dynamic providers. The service provider now also rejects messages that contain a DTD and drops XML processing instructions, as the identity provider already did. -
SAML logout with an external login callback: if you use SAML dynamic providers (
AddSamlDynamicProvider()), orAddSamlServiceProvider()with the external cookie as its sign-in scheme, your external login callback creates the IdentityServer session. Copy the SAML sign-in claims into that session, or IdP-initiated logout stays exposed after the upgrade. In our templates, add this toCaptureExternalLoginContextinPages/ExternalLogin/Callback.cshtml.cs, right after the block that copies thesidclaim:localClaims.AddRange(externalResult.Principal.Claims.Where(claim => claim.Type is "https://duendesoftware.com/Saml2/Scheme" or "https://duendesoftware.com/Saml2/LogoutNameIdentifier" or "https://duendesoftware.com/Saml2/SessionIndex"));
-
SAML logout and SameSite: if your session cookie uses
SameSite=LaxorSameSite=Strictand an identity provider sends itsLogoutRequestwith the HTTP-POST binding, the logout no longer ends the IdentityServer session. The default,SameSite=None, isn't affected.
Other changes
- Stopping an IdentityServer host synchronously from a thread with a single-threaded synchronization context, for example in xUnit v2 tests with
WebApplicationFactory, no longer hangs.
Full Changelog: is-8.0.10...is-8.0.11
Duende IdentityServer 7.4.15
We've published several security advisories for Duende products including IdentityServer and BFF, along with updated packages that fix them. We strongly recommend updating to the latest patched releases.
The same fixes are released in 8.0.11, 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.
Security fixes
- GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
- GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
- GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
- GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
Upgrade notes
- mTLS: if you call
AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme,Certificateby default) is registered, usually withAddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only ifAllowedCertificateTypesincludesCertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate. - Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
- End session: an
id_token_hintthat isn't an ID token, or that has nosubclaim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a customtypheader, add it toIdentityServerOptions.IdentityTokenJwtTypes. - Server-side sessions: a user who signs in on a browser that still carries another user's session is signed out, and has to sign in a second time. If you replaced
IServerSideTicketStorewith your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make. - DPoP: if you override
DefaultDPoPProofValidator.ValidateSignatureAsync, replaced theHandlerofJwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.
Other changes
- Stopping an IdentityServer host synchronously from a thread with a single-threaded synchronization context, for example in xUnit v2 tests with
WebApplicationFactory, no longer hangs.
Full Changelog: is-7.4.14...is-7.4.15
Duende IdentityServer 7.3.6
We've published several security advisories for Duende products including IdentityServer and BFF, along with updated packages that fix them. We strongly recommend updating to the latest patched releases.
The same fixes are released in 8.0.11, 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.
Security fixes
- GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
- GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
- GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
- GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
Upgrade notes
- mTLS: if you call
AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme,Certificateby default) is registered, usually withAddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only ifAllowedCertificateTypesincludesCertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate. - Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
- End session: an
id_token_hintthat isn't an ID token, or that has nosubclaim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a customtypheader, add it toIdentityServerOptions.IdentityTokenJwtTypes. - Server-side sessions: a user who signs in on a browser that still carries another user's session is signed out, and has to sign in a second time. If you replaced
IServerSideTicketStorewith your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make. - DPoP: if you override
DefaultDPoPProofValidator.ValidateSignatureAsync, replaced theHandlerofJwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.
Full Changelog: is-7.3.5...is-7.3.6
Duende IdentityServer 7.2.6
We've published several security advisories for Duende products including IdentityServer and BFF, along with updated packages that fix them. We strongly recommend updating to the latest patched releases.
The same fixes are released in 8.0.11, 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.
Security fixes
- GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
- GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
- GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
- GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
Upgrade notes
- mTLS: if you call
AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme,Certificateby default) is registered, usually withAddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only ifAllowedCertificateTypesincludesCertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate. - Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
- End session: an
id_token_hintthat isn't an ID token, or that has nosubclaim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a customtypheader, add it toIdentityServerOptions.IdentityTokenJwtTypes. - Server-side sessions: a user who signs in on a browser that still carries another user's session is signed out, and has to sign in a second time. If you replaced
IServerSideTicketStorewith your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make. - DPoP: if you override
DefaultDPoPProofValidator.ValidateSignatureAsync, replaced theHandlerofJwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.
Full Changelog: is-7.2.5...is-7.2.6
Duende IdentityServer 7.1.4
We've published several security advisories for Duende products including IdentityServer and BFF, along with updated packages that fix them. We strongly recommend updating to the latest patched releases.
The same fixes are released in 8.0.11, 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.
Security fixes
- GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
- GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
- GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
- GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
Upgrade notes
- mTLS: if you call
AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme,Certificateby default) is registered, usually withAddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only ifAllowedCertificateTypesincludesCertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate. - Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
- End session: an
id_token_hintthat isn't an ID token, or that has nosubclaim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a customtypheader, add it toIdentityServerOptions.IdentityTokenJwtTypes. - Server-side sessions: a user who signs in on a browser that still carries another user's session is signed out, and has to sign in a second time. If you replaced
IServerSideTicketStorewith your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make. - DPoP: if you override
DefaultDPoPProofValidator.ValidateSignatureAsync, replaced theHandlerofJwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.
Full Changelog: is-7.1.3...is-7.1.4
Duende IdentityServer 7.0.11
We've published several security advisories for Duende products including IdentityServer and BFF, along with updated packages that fix them. We strongly recommend updating to the latest patched releases.
The same fixes are released in 8.0.11, 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.
Security fixes
- GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
- GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
- GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
- GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
Upgrade notes
- mTLS: if you call
AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme,Certificateby default) is registered, usually withAddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only ifAllowedCertificateTypesincludesCertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate. - Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
- End session: an
id_token_hintthat isn't an ID token, or that has nosubclaim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a customtypheader, add it toIdentityServerOptions.IdentityTokenJwtTypes. - Server-side sessions: a user who signs in on a browser that still carries another user's session is signed out, and has to sign in a second time. If you replaced
IServerSideTicketStorewith your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make. - DPoP: if you override
DefaultDPoPProofValidator.ValidateSignatureAsync, replaced theHandlerofJwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.
Full Changelog: is-7.0.10...is-7.0.11
Duende.BFF 4.3.4
Duende.BFF 4.3.4
We've published several security advisories for Duende products including IdentityServer and BFF, along with updated packages that fix them. We strongly recommend updating to the latest patched releases.
The fixes change default behavior. Read Breaking changes below before you upgrade.
The same fixes are released in 4.3.4, 4.2.2, 4.1.4 and 4.0.5. The fix for GHSA-x394-gwr7-4885 is also released in 3.1.3, 3.0.2, 2.3.2 and 2.2.2.
Security fixes
- GHSA-x394-gwr7-4885: Responses from proxied APIs can set session cookies, and signing in then reuses that planted server-side session.
- GHSA-6gxg-chg2-rm9v: Static asset proxying can forward requests to arbitrary URLs.
Breaking changes
- Proxied APIs can no longer set cookies. If you rely on cookies set by a proxied API, for example load balancer affinity cookies, you can turn this off with
BffOptions.RemoveCookieHeadersFromProxiedResponses = false. Only do this if you trust every API that the BFF proxies. The same setting applies to responses from the static assets server. - Static asset proxy requests use their own HTTP client, named
Duende.Bff.StaticAssetsProxyClient(Constants.HttpClientNames.StaticAssetsProxyClientName). If you configured headers, credentials, certificates or handlers for these requests throughBffOptions.StaticAssetsClientNameorBffOptions.BackchannelHttpHandler, move them to this client withAddHttpClient(Constants.HttpClientNames.StaticAssetsProxyClientName). Custom handlers on this client must not follow redirects. The BFF returns a 502 response when the static assets server redirects. - Server-side sessions: a user who signs in on a browser that still carries another user's session is signed out, and has to sign in a second time. If you replaced
IServerTicketStorewith your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make.
Full Changelog: bff-4.3.3...bff-4.3.4