Huia.AspNetCore
1.0.0-alpha.4
dotnet add package Huia.AspNetCore --version 1.0.0-alpha.4
NuGet\Install-Package Huia.AspNetCore -Version 1.0.0-alpha.4
<PackageReference Include="Huia.AspNetCore" Version="1.0.0-alpha.4" />
<PackageVersion Include="Huia.AspNetCore" Version="1.0.0-alpha.4" />
<PackageReference Include="Huia.AspNetCore" />
paket add Huia.AspNetCore --version 1.0.0-alpha.4
#r "nuget: Huia.AspNetCore, 1.0.0-alpha.4"
#:package Huia.AspNetCore@1.0.0-alpha.4
#addin nuget:?package=Huia.AspNetCore&version=1.0.0-alpha.4&prerelease
#tool nuget:?package=Huia.AspNetCore&version=1.0.0-alpha.4&prerelease
Huia.AspNetCore
The ASP.NET Core integration for the Huia identity provider.
builder.Services.AddHuia(huia =>
{
huia.UseIssuer("https://id.example.com");
huia.AddTenant("acme", tenant => { /* ... */ });
});
var app = builder.Build();
app.UseHuia(); // localization -> multi-tenant -> routing -> authn -> authz
app.MapHuiaEndpoints(); // connect, manage, admin, account UI
UseHuia() fixes the middleware order so the Finbuckle base-path strategy runs before routing.
Cookie hardening is always on; call AddHuiaSecurityHeaders() to opt into the CSP / HSTS layer.
MapHuiaEndpoints() also maps /health/live and /health/ready (see the getting-started guide).
Identity is registered as HuiaUserManager + HuiaSignInManager, plus a named IdentityOptions
instance per HuiaAuthFlow (Default / Password / PhoneLogin / ExternalLogin) reached through
IHuiaFlowIdentityFactory — see docs/dotnet/user-manager.md.
Account-UI assets
The Razor Pages account UI is styled with Basecoat (Tailwind CSS +
basecoat-css), plus vendored flag-icons and FontAwesome brand marks and a libphonenumber-js
bundle for client-side phone validation. The built output under wwwroot/ is committed — CI checks
it's up to date.
The BuildAccountUiAssets target in Huia.AspNetCore.csproj regenerates it as part of the build
(it runs the Tailwind CLI and copies the vendored assets out of node_modules, restoring them with
npm ci on first run). It needs npm on PATH; a build without Node keeps the committed output
untouched. After editing Assets/styles/huia.css or any Areas/**/*.cshtml / Emails/**/*.cshtml
markup that changes which utility classes are used, rebuild and commit the result:
dotnet build src/Huia.AspNetCore/Huia.AspNetCore.csproj -p:ForceAccountUiAssets=true
Pass -p:SkipAccountUiAssets=true to skip the target entirely.
| 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
- Finbuckle.MultiTenant (>= 10.1.3)
- Finbuckle.MultiTenant.AspNetCore (>= 10.1.3)
- Finbuckle.MultiTenant.EntityFrameworkCore (>= 10.1.3)
- Finbuckle.MultiTenant.Identity.EntityFrameworkCore (>= 10.1.3)
- Huia (>= 1.0.0-alpha.4)
- Huia.EntityFrameworkCore (>= 1.0.0-alpha.4)
- libphonenumber-csharp (>= 9.0.38)
- MailKit (>= 4.17.0)
- Microsoft.AspNetCore.Identity.EntityFrameworkCore (>= 10.0.11)
- Microsoft.EntityFrameworkCore (>= 10.0.11)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.11)
- Microsoft.Extensions.Caching.Hybrid (>= 10.1.0)
- MimeKit (>= 4.17.0)
- MR.AspNetCore.Pagination (>= 3.1.0)
- OpenIddict.AspNetCore (>= 7.6.1)
- OpenIddict.Client.AspNetCore (>= 7.6.1)
- OpenIddict.Client.DataProtection (>= 7.6.1)
- OpenIddict.Client.SystemNetHttp (>= 7.6.1)
- OpenIddict.Client.WebIntegration (>= 7.6.1)
- OpenIddict.EntityFrameworkCore (>= 7.6.1)
- OpenIddict.Quartz (>= 7.6.1)
- OpenIddict.Validation.AspNetCore (>= 7.6.1)
- OpenIddict.Validation.SystemNetHttp (>= 7.6.1)
- Quartz (>= 3.20.0)
- Quartz.Extensions.DependencyInjection (>= 3.20.0)
- Quartz.Extensions.Hosting (>= 3.20.0)
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.4 | 41 | 9/6/2026 |