Franz.Common.Http.Authentication
3.0.0
dotnet add package Franz.Common.Http.Authentication --version 3.0.0
NuGet\Install-Package Franz.Common.Http.Authentication -Version 3.0.0
<PackageReference Include="Franz.Common.Http.Authentication" Version="3.0.0" />
<PackageVersion Include="Franz.Common.Http.Authentication" Version="3.0.0" />
<PackageReference Include="Franz.Common.Http.Authentication" />
paket add Franz.Common.Http.Authentication --version 3.0.0
#r "nuget: Franz.Common.Http.Authentication, 3.0.0"
#:package Franz.Common.Http.Authentication@3.0.0
#addin nuget:?package=Franz.Common.Http.Authentication&version=3.0.0
#tool nuget:?package=Franz.Common.Http.Authentication&version=3.0.0
Franz.Common.Http.Authentication
JWT bearer authentication helpers for ASP.NET Core with strict token validation and fail-fast configuration.
Overview
JWT bearer authentication helpers for ASP.NET Core with strict token validation and fail-fast configuration.
Installation
dotnet add package Franz.Common.Http.Authentication
Symmetric JWT configuration
The package exposes a fluent helper for applications that issue and validate symmetric-signature JWTs.
using Franz.Common.Http.Authentication.Extensions;
builder.Services
.AddFranzAuthentication()
.ConfigureJwtBearer(builder.Configuration);
The default configuration section is JwtSettings:
{
"JwtSettings": {
"Issuer": "https://identity.example.com",
"Audience": "orders-api",
"SigningKey": "<load-a-32-byte-or-longer-secret-from-a-secret-store>"
}
}
Required settings:
| Setting | Contract |
|---|---|
Issuer |
Required; exact issuer validation is always enabled. |
Audience |
Required; exact audience validation is always enabled. |
SigningKey |
Required symmetric key of at least 32 UTF-8 bytes. |
The helper always requires signed tokens and expiration, validates issuer, audience, lifetime, and signing key, and uses zero clock skew. Missing values or an undersized key fail during service registration. Validation is never silently disabled to accommodate incomplete configuration.
Load signing material from Key Vault, another secret manager, or protected environment configuration. Do not commit real signing keys or place them in ordinary application settings files.
This helper is specifically for symmetric signing. For Entra ID, Keycloak, or another OpenID Connect provider using asymmetric keys and discovery metadata, configure the standard ASP.NET Core AddJwtBearer options with the provider authority and API audience. Do not place an asymmetric public key or an OIDC client secret in SigningKey.
Integration with HTTP bootstrap
AddHttpArchitecture(...) composes authentication middleware into the request pipeline but does not infer or invent an identity provider configuration. Configure the authentication scheme explicitly in the host application.
UseHttpArchitecture() orders authentication before tenant resolution and endpoint authorization. For authenticated principals, tenant resolution requires an application-provided ITenantRequestAuthorizer; a tenant claim alone is not membership proof.
Related documentation
License
Licensed under the MIT License. See the repository LICENSE for details.
| 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
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 10.0.14)
- Swashbuckle.AspNetCore.SwaggerGen (>= 10.2.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Franz.Common.Http.Authentication:
| Package | Downloads |
|---|---|
|
Franz.Common.Http.Bootstrap
Shared utility library for the Franz Framework. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 0 | 11/10/2026 |
| 2.3.4 | 353 | 11/1/2026 |
| 2.3.3 | 318 | 10/28/2026 |
| 2.3.2 | 108 | 10/27/2026 |
| 2.3.1 | 160 | 10/26/2026 |
| 2.3.0 | 229 | 7/21/2026 |
| 2.2.19 | 144 | 7/19/2026 |
| 2.2.18 | 137 | 7/19/2026 |
| 2.2.17 | 145 | 7/12/2026 |
| 2.2.16 | 148 | 7/2/2026 |
| 2.2.15 | 146 | 6/29/2026 |
| 2.2.14 | 133 | 6/29/2026 |
| 2.2.13 | 141 | 6/29/2026 |
| 2.2.12 | 137 | 6/28/2026 |
| 2.2.11 | 147 | 6/28/2026 |
| 2.2.10 | 137 | 6/28/2026 |
| 2.2.9 | 145 | 6/28/2026 |
| 2.2.8 | 134 | 6/28/2026 |
| 2.2.7 | 141 | 6/7/2026 |
| 2.2.6 | 137 | 6/6/2026 |