Franz.Common.Http.Authentication 2.3.3

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

Franz.Common.Http.Authentication

HTTP, identity, and service integration for the Franz.Common framework on .NET 10.

Overview

The Franz.Common.Http.Authentication package provides HTTP, identity, and service integration within Franz.Common. It is designed to compose with the rest of the framework rather than imposing unrelated infrastructure choices on every application.

Installation

dotnet add package Franz.Common.Http.Authentication

Design principles

  • Explicit composition: register only the capabilities the application needs.
  • Clear boundaries: keep domain and application contracts independent from provider-specific infrastructure where the package's role permits it.
  • Predictable behavior: make configuration, failure modes, and lifecycle ownership visible rather than relying on hidden conventions.
  • Operational readiness: validate security, resilience, diagnostics, and compatibility for the actual deployment environment.

Usage and configuration

Follow the package-specific setup, configuration, and code examples below. Only configure external services when this package requires them, and keep secrets outside source control.

Package-specific guide

A specialized library within the Franz Framework that provides streamlined configurations for JWT Bearer Authentication and Swagger integration in ASP.NET Core applications. This package simplifies secure API development by integrating authentication mechanisms and enhancing API documentation with authentication workflows.


Features

  • JWT Bearer Authentication:
    • Simplifies configuration and registration of JWT Bearer Authentication for secure APIs.
  • Swagger Integration:
    • Enhances Swagger documentation with JWT support using Swashbuckle.AspNetCore.SwaggerGen.
  • Service Registration:
    • ServiceCollectionExtensions for easy setup of authentication services and Swagger enhancements.

Version Information

Current Version: v2.3.3

  • Part of the private Franz Framework ecosystem.

Dependencies

This package relies on:

  • Microsoft.AspNetCore.Authentication.JwtBearer (8.0.0): Provides middleware for JWT authentication in ASP.NET Core.
  • Swashbuckle.AspNetCore.SwaggerGen (6.5.0): Adds Swagger generation capabilities for APIs with authentication.
  • Microsoft.NETCore.App: Core framework for .NET applications.

Installation

From Private Azure Feed

Since this package is hosted privately, configure your NuGet client:

dotnet nuget add source "https://your-private-feed-url" \
  --name "AzurePrivateFeed" \
  --username "YourAzureUsername" \
  --password "YourAzurePassword" \
  --store-password-in-clear-text

Install the package:

dotnet add package Franz.Common.Http.Authentication  

Usage

1. Configuring JWT Bearer Authentication

Use the ServiceCollectionExtensions to configure JWT authentication:

using Franz.Common.Http.Authentication.Extensions;

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddJwtBearerAuthentication(options =>
        {
            options.Authority = "https://your-auth-server";
            options.Audience = "your-api-audience";
        });
    }
}

This automatically registers the necessary middleware for JWT authentication.

2. Swagger Integration with Authentication

Enable JWT authentication in your Swagger configuration:

using Franz.Common.Http.Authentication.Extensions;

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddSwaggerWithJwtSupport(); // Adds Swagger integration with JWT
    }

    public void Configure(IApplicationBuilder app)
    {
        app.UseSwagger();
        app.UseSwaggerUI(c =>
        {
            c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
        });
    }
}

3. Protecting API Endpoints

Secure your endpoints with [Authorize] attributes:

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

[ApiController]
[Route("api/[controller]")]
public class OrdersController : ControllerBase
{
    [HttpGet]
    [Authorize]
    public IActionResult GetOrders()
    {
        return Ok(new[] { "Order1", "Order2" });
    }
}

Integration with Franz Framework

The Franz.Common.Http.Authentication package integrates seamlessly with:

  • Franz.Common.Http: Provides complementary HTTP utilities.
  • Franz.Common: Core utilities for shared functionality.

Ensure these dependencies are installed to fully leverage the library's capabilities.


Contributing

This package is part of a private framework. Contributions are limited to the internal development team. If you have access, follow these steps:

  1. Clone the repository. @ https://github.com/bestacio89/Franz.Common/
  2. Create a feature branch.
  3. Submit a pull request for review.

License

This library is licensed under the MIT License. See the LICENSE file for more details.


Changelog

Version 1.2.65

  • Upgrade version to .net 9

Version 1.3

  • Upgraded to .NET 9.0.8
  • Added new features and improvements
  • Separated business concepts from mediator concepts
  • Now compatible with both the in-house mediator and MediatR

v2.0.1 – Internal Modernization

  • Messaging and infrastructure refactored for async, thread-safety, and modern .NET 10 patterns.
  • All APIs remain fully backward compatible.
  • Tests, listeners, and pipeline components modernized.

Dependency maintenance — October 2026

This project's dependency references were reviewed and updated as part of the repository-wide .NET 10 maintenance pass. The intended target framework and public API remain unchanged. Verify the resolved direct and transitive dependency graph through the repository's dependency validation workflow before publishing. See the central dependency upgrade record.

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
2.3.3 67 10/28/2026
2.3.2 49 10/27/2026
2.3.1 145 10/26/2026
2.3.0 193 7/21/2026
2.2.19 139 7/19/2026
2.2.18 133 7/19/2026
2.2.17 140 7/12/2026
2.2.16 143 7/2/2026
2.2.15 141 6/29/2026
2.2.14 129 6/29/2026
2.2.13 136 6/29/2026
2.2.12 132 6/28/2026
2.2.11 142 6/28/2026
2.2.10 132 6/28/2026
2.2.9 139 6/28/2026
2.2.8 129 6/28/2026
2.2.7 137 6/7/2026
2.2.6 132 6/6/2026
2.2.5 141 6/4/2026
2.2.4 134 6/3/2026
Loading failed