Huia.AspNetCore 1.0.0-alpha.4

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

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 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.4 41 9/6/2026