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
<PackageReference Include="OidcForge.EntityFramework.Storage" Version="4.2.0" />
<PackageVersion Include="OidcForge.EntityFramework.Storage" Version="4.2.0" />
<PackageReference Include="OidcForge.EntityFramework.Storage" />
paket add OidcForge.EntityFramework.Storage --version 4.2.0
#r "nuget: OidcForge.EntityFramework.Storage, 4.2.0"
#:package OidcForge.EntityFramework.Storage@4.2.0
#addin nuget:?package=OidcForge.EntityFramework.Storage&version=4.2.0
#tool nuget:?package=OidcForge.EntityFramework.Storage&version=4.2.0
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 (Keystable, 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 newKeystable. EF Core 9+ throws onMigrate()when the model has pending changes; check withdotnet ef migrations has-pending-model-changes. - Atomic grant redemption.
PersistedGrantStore.GetAndRemoveAsyncdeletes 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 | Versions 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. |
-
net10.0
- Mapster (>= 10.0.13)
- Microsoft.EntityFrameworkCore (>= 10.0.12)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.12)
- OidcForge.Storage (>= 4.2.0)
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 |