Zwedze.Aetherweave.Security.Jwt 0.2.5

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

Aetherweave.Security.Jwt

Configuration-driven JWT Bearer authentication for APIs, built on Zwedze.Aetherweave.Core's validated options loading.

Features

  • One-Line Registration - Configure AddJwtBearer from appsettings.json instead of hand-wiring JwtBearerOptions
  • Startup Validation - Missing or invalid configuration throws immediately, not on first request
  • Type-Safe Options - AetherweaveJwtBearerOptions validated via data annotations

Installation

dotnet add package Zwedze.Aetherweave.Security.Jwt

Configuration (Aetherweave:Security:JwtBearer)

Key Notes
Authority Required. The token issuer, e.g. your identity provider's URL
Audience Required. The expected aud claim
RequireHttpsMetadata Required. Set false only for local development
{
  "Aetherweave": {
    "Security": {
      "JwtBearer": {
        "Authority": "https://identity.example.com",
        "Audience": "orders-api",
        "RequireHttpsMetadata": true
      }
    }
  }
}

Quick Start

services.AddAetherweaveJwtBearerAuthentication(configuration);

// Or with a custom section name
services.AddAetherweaveJwtBearerAuthentication(configuration, "MyApp:Jwt");

This reads and validates AetherweaveJwtBearerOptions from configuration, then registers AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJwtBearer(...) with Authority, Audience, and RequireHttpsMetadata set accordingly.

Remember to also call app.UseAuthentication() and app.UseAuthorization() in your pipeline, and add [Authorize] to the endpoints you want protected — this package only wires up the JWT Bearer handler.

API Reference

Member Signature
AddAetherweaveJwtBearerAuthentication (this IServiceCollection, IConfiguration, string sectionName = "Aetherweave:Security:JwtBearer") → IServiceCollection
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

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
0.2.5 95 9/3/2026
0.2.5-pre.2 64 9/3/2026
0.2.5-pre.1 68 8/13/2026
0.2.5-extend-db-registratio... 61 8/31/2026
0.2.4 114 8/13/2026
0.2.4-pre.1 70 8/13/2026
0.2.3 98 8/6/2026
0.2.3-pre.1 72 8/6/2026
0.2.2 93 8/5/2026
0.2.2-pre.1 74 7/30/2026
0.2.1 108 7/29/2026
0.2.1-pre.1 65 7/29/2026
0.2.0 113 7/25/2026
0.1.2-pre.3 74 7/25/2026
0.1.2-pre.1 65 7/24/2026