Cerbi.CerbiStream.Auth 1.0.2

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

Cerbi.Auth

Reusable helpers that standardize how Cerbi APIs configure JWT bearer authentication. The package now targets net8.0, net9.0, and net10.0 so downstream APIs can adopt the same binary across supported runtimes.

Installation

dotnet add package Cerbi.CerbiStream.Auth --version 1.0.1

Or reference the project directly:

<ProjectReference Include="src/Cerbi.Auth/Cerbi.Auth.csproj" />

Usage

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddCerbiJwtAuth(
    builder.Configuration,
    options =>
    {
        options.RequireHttpsMetadata = true;
        options.SaveToken = true;
    });

Configuration can live under either Jwt:* (preferred) or Authentication:Jwt:*:

{
  "Jwt": {
    "Authority": "https://login.cerbi.dev",
    "Audience": "cerbi-api"
  }
}

Local-only scenarios may disable HTTPS metadata by setting Jwt:RequireHttpsMetadata to false while DOTNET_ENVIRONMENT is Development.

Local packaging

dotnet pack src/Cerbi.Auth/Cerbi.Auth.csproj --configuration Release -o .nupkgs

Consume the nupkg via a local feed:

dotnet nuget add source $(pwd)/.nupkgs --name cerbi-local

Contributing

  1. dotnet test Cerbi.Auth.sln
  2. Submit PRs with green CI and updated documentation/tests.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.2 618 12/20/2025
1.0.0 306 12/15/2025