NOF.Hosting.AspNetCore.Extensions.Authority
6.5.2-nightly.1114223.58a29aa
dotnet add package NOF.Hosting.AspNetCore.Extensions.Authority --version 6.5.2-nightly.1114223.58a29aa
NuGet\Install-Package NOF.Hosting.AspNetCore.Extensions.Authority -Version 6.5.2-nightly.1114223.58a29aa
<PackageReference Include="NOF.Hosting.AspNetCore.Extensions.Authority" Version="6.5.2-nightly.1114223.58a29aa" />
<PackageVersion Include="NOF.Hosting.AspNetCore.Extensions.Authority" Version="6.5.2-nightly.1114223.58a29aa" />
<PackageReference Include="NOF.Hosting.AspNetCore.Extensions.Authority" />
paket add NOF.Hosting.AspNetCore.Extensions.Authority --version 6.5.2-nightly.1114223.58a29aa
#r "nuget: NOF.Hosting.AspNetCore.Extensions.Authority, 6.5.2-nightly.1114223.58a29aa"
#:package NOF.Hosting.AspNetCore.Extensions.Authority@6.5.2-nightly.1114223.58a29aa
#addin nuget:?package=NOF.Hosting.AspNetCore.Extensions.Authority&version=6.5.2-nightly.1114223.58a29aa&prerelease
#tool nuget:?package=NOF.Hosting.AspNetCore.Extensions.Authority&version=6.5.2-nightly.1114223.58a29aa&prerelease
NOF.Hosting.AspNetCore.Extensions.Authority
ASP.NET Core JWT authority hosting extension for the NOF Framework.
Overview
Provides a complete JWT authority for ASP.NET Core hosted NOF applications. Includes token issuance, RSA key management with rotation, standard /.well-known/jwks.json endpoint, refresh token validation/revocation, and local token validation without HTTP round-trips. JWT client infrastructure (OIDC resource server, JWKS fetching) is built into NOF.Infrastructure.Core.
Features
- Token Issuance — generate access and refresh token pairs with
kidin JWT header - Key Management —
ISigningKeyServicewith RSA key rotation and retired key retention - Standard JWKS Endpoint —
/.well-known/jwks.jsonserved directly via minimal API, compatible with OIDC clients - Local Token Validation — the authority validates its own tokens using
LocalJwksProviderwithout HTTP calls - Refresh Token Lifecycle — validate and revoke refresh tokens with cache-based revocation
- Automatic Key Rotation — background service rotates keys on a configurable interval and publishes
KeyRotationNotificationfor distributed JWKS refresh - Service Registration —
AddJwtAuthority()registers all required services and the JWKS endpoint in one call
Usage
var builder = NOFWebApplicationBuilder.Create(args, useDefaultConfigs: true);
builder.AddJwtAuthority();
Configure via JwtOptions in your application settings:
{
"Jwt": {
"Issuer": "your-app"
}
}
Or configure programmatically:
builder.AddJwtAuthority(options =>
{
options.Issuer = "your-app";
options.KeySize = 2048;
options.RetiredKeyRetentionCount = 2;
});
Dependencies
Installation
dotnet add package NOF.Hosting.AspNetCore.Extensions.Authority
License
Apache-2.0
| 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
- NOF.Hosting.AspNetCore (>= 6.5.2-nightly.1114223.58a29aa)
- System.IdentityModel.Tokens.Jwt (>= 8.15.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 |
|---|---|---|
| 6.5.2-nightly.1114223.58a29aa | 106 | 2/12/2026 |
| 6.5.2-nightly.1114104.3cf19e5 | 82 | 2/12/2026 |
| 6.5.2-nightly.1114080.bddee50 | 86 | 2/12/2026 |
| 6.5.2-nightly.1113994.8e9bb65 | 85 | 2/12/2026 |
| 6.5.2-nightly.1113991.a5ba919 | 79 | 2/12/2026 |
| 6.5.2-nightly.1113966.83cc1b8 | 83 | 2/12/2026 |
| 6.5.2-nightly.1113856.764deac | 84 | 2/12/2026 |
| 6.5.2-nightly.1112633.14ede58 | 77 | 2/11/2026 |