OidcForge.EntityFramework.Storage 4.2.0

dotnet add package OidcForge.EntityFramework.Storage --version 4.2.0
                    
NuGet\Install-Package OidcForge.EntityFramework.Storage -Version 4.2.0
                    
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="OidcForge.EntityFramework.Storage" Version="4.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OidcForge.EntityFramework.Storage" Version="4.2.0" />
                    
Directory.Packages.props
<PackageReference Include="OidcForge.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 OidcForge.EntityFramework.Storage --version 4.2.0
                    
#r "nuget: OidcForge.EntityFramework.Storage, 4.2.0"
                    
#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 OidcForge.EntityFramework.Storage@4.2.0
                    
#: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=OidcForge.EntityFramework.Storage&version=4.2.0
                    
Install as a Cake Addin
#tool nuget:?package=OidcForge.EntityFramework.Storage&version=4.2.0
                    
Install as a Cake Tool

OidcForge.EntityFramework.Storage

Entity Framework Core persistence layer of the OidcForge OpenID Connect / OAuth 2.0 framework (a maintained fork of IdentityServer4 4.x): entities, DbContexts and store implementations for .NET 10 and EF Core 10.

dotnet add package OidcForge.EntityFramework.Storage

Most applications use the wiring in OidcForge.EntityFramework (AddConfigurationStore, AddOperationalStore) and do not reference this package directly. Take it when you need the entities or DbContexts without the framework — for example in a migrations project or an admin UI.

What is in it

  • ConfigurationDbContext — clients, API resources, API scopes and identity resources (and their secrets, claims, properties).
  • PersistedGrantDbContext — persisted grants (authorization codes, refresh and reference tokens, consent), device flow codes and signing keys (Keys table, used by automatic key management).
  • Stores — ClientStore, ResourceStore, PersistedGrantStore, DeviceFlowStore, SigningKeyStore, plus the token cleanup service.
  • Mappers — ToModel() / ToEntity() extension methods between entities and models. The mappers are generated code (Mapster); there is no runtime reflection and no AutoMapper dependency.
  • Table and schema names are configurable through ConfigurationStoreOptions / OperationalStoreOptions.

Things that matter

  • Migrations. This package ships no migrations: you own the schema. Create them in your own project (dotnet ef migrations add … -c PersistedGrantDbContext) — reference migrations for SQL Server are in the repository. If you upgrade from IdentityServer4 4.x, add a migration for the new Keys table. EF Core 9+ throws on Migrate() when the model has pending changes; check with dotnet ef migrations has-pending-model-changes.
  • Atomic grant redemption. PersistedGrantStore.GetAndRemoveAsync deletes the row and reports a concurrency conflict as "not found", so of two concurrent requests for the same authorization code only one succeeds.
  • Token cleanup (EnableTokenCleanup, TokenCleanupInterval, TokenCleanupBatchSize) removes expired grants and device codes.

Status and license

Not certified, not affiliated with Duende Software or the .NET Foundation, no commercial support. See the release notes and the issue tracker. Report vulnerabilities privately (SECURITY.MD).

Apache 2.0. Copyright (c) Brock Allen & Dominick Baier, Scott Brady; modifications copyright (c) Yaroslav Tatarenko.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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 OidcForge.EntityFramework.Storage:

Package Downloads
OidcForge.EntityFramework

EntityFramework persistence configuration APIs (maintained fork of IdentityServer4)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.2.0 130 10/2/2026