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
                    
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="Franz.Common.Http.Authentication" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Franz.Common.Http.Authentication" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Franz.Common.Http.Authentication" />
                    
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 Franz.Common.Http.Authentication --version 3.0.0
                    
#r "nuget: Franz.Common.Http.Authentication, 3.0.0"
                    
#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 Franz.Common.Http.Authentication@3.0.0
                    
#: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=Franz.Common.Http.Authentication&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Franz.Common.Http.Authentication&version=3.0.0
                    
Install as a Cake Tool

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.

License

Licensed under the MIT License. See the repository LICENSE for details.

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 (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 66 11/10/2026
2.3.4 356 11/1/2026
2.3.3 321 10/28/2026
2.3.2 110 10/27/2026
2.3.1 163 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
Loading failed