OidcForge.Storage 4.2.0

dotnet add package OidcForge.Storage --version 4.2.0
                    
NuGet\Install-Package OidcForge.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.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.Storage" Version="4.2.0" />
                    
Directory.Packages.props
<PackageReference Include="OidcForge.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.Storage --version 4.2.0
                    
#r "nuget: OidcForge.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.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.Storage&version=4.2.0
                    
Install as a Cake Addin
#tool nuget:?package=OidcForge.Storage&version=4.2.0
                    
Install as a Cake Tool

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, SerializedKey and the related enums and GrantType constants.
  • Store interfaces — IClientStore, IResourceStore, IPersistedGrantStore, IAuthorizationCodeStore, IRefreshTokenStore, IReferenceTokenStore, IUserConsentStore, IDeviceFlowStore, and ISigningKeyStore for automatic signing key management.
  • Serialization — IPersistentGrantSerializer and the default System.Text.Json implementation. 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 Client are Uri values; AllowedGrantTypes validates every change (for example implicit together with authorization_code throws).
  • ISigningKeyStore (LoadKeysAsync, StoreKeyAsync, DeleteKeyAsync) persists the keys created by automatic key management; register an implementation with AddSigningKeyStore<T>(). Key material in SerializedKey.Data is already protected when DataProtected is 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 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 (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