Huia.OpenId.EntityFrameworkCore 1.0.0-alpha.9

This is a prerelease version of Huia.OpenId.EntityFrameworkCore.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Huia.OpenId.EntityFrameworkCore --version 1.0.0-alpha.9
                    
NuGet\Install-Package Huia.OpenId.EntityFrameworkCore -Version 1.0.0-alpha.9
                    
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="Huia.OpenId.EntityFrameworkCore" Version="1.0.0-alpha.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Huia.OpenId.EntityFrameworkCore" Version="1.0.0-alpha.9" />
                    
Directory.Packages.props
<PackageReference Include="Huia.OpenId.EntityFrameworkCore" />
                    
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 Huia.OpenId.EntityFrameworkCore --version 1.0.0-alpha.9
                    
#r "nuget: Huia.OpenId.EntityFrameworkCore, 1.0.0-alpha.9"
                    
#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 Huia.OpenId.EntityFrameworkCore@1.0.0-alpha.9
                    
#: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=Huia.OpenId.EntityFrameworkCore&version=1.0.0-alpha.9&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Huia.OpenId.EntityFrameworkCore&version=1.0.0-alpha.9&prerelease
                    
Install as a Cake Tool

Huia.OpenId.EntityFrameworkCore

Entity Framework Core persistence for the Huia identity provider:

  • HuiaDbContext<TUser, TRole, TId> derives from Finbuckle's MultiTenantIdentityDbContext<TUser, TRole, string> and calls builder.UseOpenIddict(). The third generic parameter is TId (Huia's built-in entities use string). Derive a custom context with DbContextOptions<YourContext> when adding host-specific entities. The constructor takes (IMultiTenantContextAccessor accessor, DbContextOptions options) and snapshots the resolved TenantInfo at construction — seeding / background code must set the ambient tenant (HuiaTenantScope.Enter(...)) before resolving the context or UserManager.
  • Tenant isolation is a global query filter (TenantId == TenantInfo.Id) on every user / role / claim / login / token entity, plus write-time EnforceMultiTenant() (throws on a tenant-less or cross-tenant write, auto-stamps TenantId on insert). Any deliberately cross-tenant query must .IgnoreQueryFilters() — the filter NREs rather than returning nothing when no tenant is in scope.
  • All tables are renamed to Huia* via ToTable; ApplyTenantScopedIndexes runs last in OnModelCreating and re-adds the named composites the model tests assert (IX_HuiaUsers_Tenant_UserName unique, IX_HuiaUsers_Tenant_Email, IX_HuiaRoles_Tenant_Name unique), superseding Finbuckle's AdjustUniqueIndexes.
  • HuiaSigningKey is not multi-tenant (it carries a manual TenantId), so the key-lifecycle jobs run with no tenant scope. OpenIddict entities are stock; the tenant binding lives in each application's Properties["huia:tenant"] and is enforced by HuiaOpenIddict{Application,Scope}Store (which read IMultiTenantContextAccessor).
  • IMultiTenantContextAccessor extensions CurrentTenantId() / RequireCurrentTenantId() (Huia.OpenId.EntityFrameworkCore.Multitenancy.TenantAccessorExtensions) for reads.

This package is provider-agnostic and ships no migrations. The host application owns the provider package (for example Npgsql.EntityFrameworkCore.PostgreSQL), the migrations, and the design-time factory.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-alpha.17 0 10/16/2026
1.0.0-alpha.15.4 62 10/3/2026
1.0.0-alpha.15 58 10/3/2026
1.0.0-alpha.14 59 10/2/2026
1.0.0-alpha.13 70 9/26/2026
1.0.0-alpha.12 68 9/25/2026
1.0.0-alpha.11 63 9/25/2026
1.0.0-alpha.10 66 9/25/2026
1.0.0-alpha.9 68 9/24/2026
1.0.0-alpha.8 72 9/19/2026
1.0.0-alpha.7 66 9/19/2026
1.0.0-alpha.6 78 9/19/2026
1.0.0-alpha.5 71 9/15/2026