Ldun.IdentityServer4.EntityFramework.Storage 5.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Ldun.IdentityServer4.EntityFramework.Storage --version 5.0.2
                    
NuGet\Install-Package Ldun.IdentityServer4.EntityFramework.Storage -Version 5.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ldun.IdentityServer4.EntityFramework.Storage" Version="5.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ldun.IdentityServer4.EntityFramework.Storage" Version="5.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Ldun.IdentityServer4.EntityFramework.Storage" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ldun.IdentityServer4.EntityFramework.Storage --version 5.0.2
                    
#r "nuget: Ldun.IdentityServer4.EntityFramework.Storage, 5.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ldun.IdentityServer4.EntityFramework.Storage@5.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ldun.IdentityServer4.EntityFramework.Storage&version=5.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Ldun.IdentityServer4.EntityFramework.Storage&version=5.0.2
                    
Install as a Cake Tool

Ldun Fork Status

This repository is an actively maintained ldun fork of IdentityServer4 for .NET 8 usage and security maintenance.

Published NuGet packages:

  • Ldun.IdentityServer4
  • Ldun.IdentityServer4.Storage
  • Ldun.IdentityServer4.AspNetIdentity
  • Ldun.IdentityServer4.EntityFramework.Storage
  • Ldun.IdentityServer4.EntityFramework

The project remains licensed under Apache 2.0.

Historical upstream context: the original IdentityServer4 project moved forward under Duende Software. This fork keeps the IdentityServer4 codebase available for ldun-managed use cases.

Migrating from the original IdentityServer4 packages

If you are migrating from the upstream IdentityServer4 NuGet packages:

  1. Replace package references:

    Before After
    IdentityServer4 Ldun.IdentityServer4
    IdentityServer4.Storage Ldun.IdentityServer4.Storage
    IdentityServer4.AspNetIdentity Ldun.IdentityServer4.AspNetIdentity
    IdentityServer4.EntityFramework.Storage Ldun.IdentityServer4.EntityFramework.Storage
    IdentityServer4.EntityFramework Ldun.IdentityServer4.EntityFramework
  2. Target .NET 8 or later — multi-framework targeting (net6.0, net7.0) is not supported by this fork.

  3. Removed APIs — the following members were removed; update call sites accordingly:

    Removed Replacement
    PrincipalExtensions.GetSubjectId() PrincipalExtensions.GetDisplayName()
    PrincipalExtensions.GetName() PrincipalExtensions.GetDisplayName()
  4. StrictJarValidation — this option now emits Warning-level log messages for any client sending non-conforming JWT authorization request objects (JAR / RFC 9101). Review your logs after upgrading and migrate non-conforming clients before enabling strict enforcement:

    services.AddIdentityServer(options =>
    {
        options.StrictJarValidation = true; // enable after all clients are conformant
    });
    

About IdentityServer4

<img align="right" width="100px" src="https://dotnetfoundation.org/img/logo_big.svg" />

IdentityServer is a free, open source OpenID Connect and OAuth 2.0 framework for ASP.NET Core. Founded and maintained by Dominick Baier and Brock Allen, IdentityServer4 incorporates all the protocol implementations and extensibility points needed to integrate token-based authentication, single-sign-on and API access control in your applications. IdentityServer4 is officially certified by the OpenID Foundation and thus spec-compliant and interoperable. It is part of the .NET Foundation, and operates under their code of conduct. It is licensed under Apache 2 (an OSI approved license).

For project documentation, please visit readthedocs.

Branch structure

Active development happens on the main branch. This always contains the latest version. Each (pre-) release is tagged with the corresponding version. The aspnetcore1 and aspnetcore2 branches contain the latest versions of the older ASP.NET Core based versions.

How to build

  • Install the latest .NET 8 SDK
  • Install Git
  • Clone this repo
  • Run build.ps1 or build.sh in the root of the cloned repo

Benchmark and Load Tests

Load and performance validation scripts are available in benchmark/.

Profile-based targets are available:

  • local default profile: >= 600 successful tokens/second and p95 < 700ms.
  • ci default profile: >= 1000 successful tokens/second and p95 < 250ms.
  • Rate-limit stress scenario included for host/infrastructure DDoS controls.
  • Benchmark runner auto-starts local src/IdentityServer4/host by default.

Run:

./benchmark/run.sh

Run strict profile locally:

BENCH_PROFILE=ci ./benchmark/run.sh

Release Validation and Publish

Step 1 - pre-publish verification gate (restore + build + tests + vulnerability scan + optional benchmark):

RUN_BENCHMARKS=0 ./scripts/verify.sh

Step 2 - package all NuGet artifacts:

./scripts/pack.sh --version 5.0.0 --out /tmp/ids4-pack-5.0.0

Step 3 - consumer package E2E gate against pre-packed artifacts:

./scripts/e2e-consumer.sh --version 5.0.0 --source /tmp/ids4-pack-5.0.0

Optional local consumer E2E with auto-pack:

./scripts/e2e-consumer.sh --version 5.0.0

Step 4 - publish prepared artifacts:

./scripts/publish.sh --version 5.0.0 --out /tmp/ids4-pack-5.0.0

Interactive all-in-one orchestrator (prompts for version + NuGet API key and runs all steps):

./scripts/release.sh

Compatibility aliases are still available:

  • ./publish-nuget.sh → ./scripts/release.sh
  • ./scripts/verify-release.sh → ./scripts/verify.sh

Documentation

For project documentation, please visit readthedocs.

See here for the 1.x docs, and here for the 2.x docs.

Bug reports and feature requests

Please use the issue tracker for that. We only support the latest version for free. For older versions, you can get a commercial support agreement with us.

Commercial and Community Support

If you need help with implementing IdentityServer4 or your security architecture in general, there are both free and commercial support options. See here for more details.

Sponsorship

If you are a fan of the project or a company that relies on IdentityServer, you might want to consider sponsoring. This will help us devote more time to answering questions and doing feature development. If you are interested please head to our Patreon page which has further details.

Platinum Sponsors

<img src="https://user-images.githubusercontent.com/1454075/62819413-39550c00-bb55-11e9-8f2f-a268c3552c71.png" width="200">

<img src="https://user-images.githubusercontent.com/1454075/66454740-fb973580-ea68-11e9-9993-6c1014881528.png" width="200">

Corporate Sponsors

Ritter Insurance Marketing
ExtraNetUserManager
Knab

You can see a list of our current sponsors here - and for companies we have some nice advertisement options as well.

Acknowledgements

IdentityServer4 is built using the following great open source projects and free services:

..and last but not least a big thanks to all our contributors!

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Ldun.IdentityServer4.EntityFramework.Storage:

Package Downloads
Ldun.IdentityServer4.EntityFramework

EntityFramework persistence layer for IdentityServer4

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.3 161 4/24/2026
5.0.2 2,289 4/21/2026
5.0.1 126 4/21/2026