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
<PackageReference Include="Zwedze.Aetherweave.Security.Jwt" Version="0.2.5" />
<PackageVersion Include="Zwedze.Aetherweave.Security.Jwt" Version="0.2.5" />
<PackageReference Include="Zwedze.Aetherweave.Security.Jwt" />
paket add Zwedze.Aetherweave.Security.Jwt --version 0.2.5
#r "nuget: Zwedze.Aetherweave.Security.Jwt, 0.2.5"
#:package Zwedze.Aetherweave.Security.Jwt@0.2.5
#addin nuget:?package=Zwedze.Aetherweave.Security.Jwt&version=0.2.5
#tool nuget:?package=Zwedze.Aetherweave.Security.Jwt&version=0.2.5
Aetherweave.Security.Jwt
Configuration-driven JWT Bearer authentication for APIs, built on Zwedze.Aetherweave.Core's validated options loading.
Features
- One-Line Registration - Configure
AddJwtBearerfromappsettings.jsoninstead of hand-wiringJwtBearerOptions - Startup Validation - Missing or invalid configuration throws immediately, not on first request
- Type-Safe Options -
AetherweaveJwtBearerOptionsvalidated 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 | 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.10)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Zwedze.Aetherweave.Core (>= 0.2.5)
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 |