OidcForge.Storage
4.2.0
dotnet add package OidcForge.Storage --version 4.2.0
NuGet\Install-Package OidcForge.Storage -Version 4.2.0
<PackageReference Include="OidcForge.Storage" Version="4.2.0" />
<PackageVersion Include="OidcForge.Storage" Version="4.2.0" />
<PackageReference Include="OidcForge.Storage" />
paket add OidcForge.Storage --version 4.2.0
#r "nuget: OidcForge.Storage, 4.2.0"
#:package OidcForge.Storage@4.2.0
#addin nuget:?package=OidcForge.Storage&version=4.2.0
#tool nuget:?package=OidcForge.Storage&version=4.2.0
OidcForge.Storage
Models and storage interfaces of the OidcForge OpenID Connect / OAuth 2.0 framework (a maintained fork of IdentityServer4 4.x) for .NET 10.
dotnet add package OidcForge.Storage
You need this package directly only when you implement your own stores or build a UI layer that works with the models,
without taking a dependency on the whole framework. The framework (OidcForge) and the EF Core stores reference it.
What is in it
- Models —
Client,Secret,ApiResource,ApiScope,IdentityResource,PersistedGrant,AuthorizationCode,RefreshToken,Token,DeviceCode,Consent,SerializedKeyand the related enums andGrantTypeconstants. - Store interfaces —
IClientStore,IResourceStore,IPersistedGrantStore,IAuthorizationCodeStore,IRefreshTokenStore,IReferenceTokenStore,IUserConsentStore,IDeviceFlowStore, andISigningKeyStorefor automatic signing key management. - Serialization —
IPersistentGrantSerializerand the defaultSystem.Text.Jsonimplementation. It writes the same JSON as the former Newtonsoft.Json implementation, so grants stored by earlier versions still load.
Namespaces are unchanged (IdentityServer4.Models, IdentityServer4.Stores). Targets net10.0.
Implementing a store
Two members of the store interfaces have semantics that matter for security:
public class MyGrantStore : IPersistedGrantStore
{
// Must be atomic: when called concurrently for the same key, exactly one caller gets the grant,
// the others get null. Authorization codes are redeemed through it (RFC 6749 §4.1.2 — single use).
public Task<PersistedGrant> GetAndRemoveAsync(string key) { /* DELETE … RETURNING / OUTPUT */ }
// … the other members
}
- Redirect URIs of a
ClientareUrivalues;AllowedGrantTypesvalidates every change (for exampleimplicittogether withauthorization_codethrows). ISigningKeyStore(LoadKeysAsync,StoreKeyAsync,DeleteKeyAsync) persists the keys created by automatic key management; register an implementation withAddSigningKeyStore<T>(). Key material inSerializedKey.Datais already protected whenDataProtectedis true.
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; 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
- Duende.IdentityModel (>= 8.1.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on OidcForge.Storage:
| Package | Downloads |
|---|---|
|
OidcForge
OpenID Connect and OAuth 2.0 Framework for ASP.NET Core (maintained fork of IdentityServer4) |
|
|
OidcForge.EntityFramework.Storage
EntityFramework persistence layer (maintained fork of IdentityServer4) |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.2.0 | 161 | 10/2/2026 |