Asgard.Heimdall.JwtSigning.AspNetCore
0.1.0
See the version list below for details.
dotnet add package Asgard.Heimdall.JwtSigning.AspNetCore --version 0.1.0
NuGet\Install-Package Asgard.Heimdall.JwtSigning.AspNetCore -Version 0.1.0
<PackageReference Include="Asgard.Heimdall.JwtSigning.AspNetCore" Version="0.1.0" />
<PackageVersion Include="Asgard.Heimdall.JwtSigning.AspNetCore" Version="0.1.0" />
<PackageReference Include="Asgard.Heimdall.JwtSigning.AspNetCore" />
paket add Asgard.Heimdall.JwtSigning.AspNetCore --version 0.1.0
#r "nuget: Asgard.Heimdall.JwtSigning.AspNetCore, 0.1.0"
#:package Asgard.Heimdall.JwtSigning.AspNetCore@0.1.0
#addin nuget:?package=Asgard.Heimdall.JwtSigning.AspNetCore&version=0.1.0
#tool nuget:?package=Asgard.Heimdall.JwtSigning.AspNetCore&version=0.1.0
Asgard.Heimdall.JwtSigning.AspNetCore
ASP.NET Core integration for Asgard.Heimdall.JwtSigning.
This package exposes discovery and JWKS endpoints so Asgard resource services can validate JWTs through the existing host.auth.jwt flow.
Endpoints
/.well-known/openid-configuration
/.well-known/jwks.json
Usage
builder.Services.AddAsgardHeimdallJwtSigning(options =>
{
options.Issuer = "https://auth.example.com";
options.Audience = "asgard-api";
options.KeyId = "main-key";
options.RsaPrivateKeyPem = privateKeyPem;
options.RsaPublicKeyPem = publicKeyPem;
});
app.MapAsgardHeimdallJwtSigningDiscovery();
Your application still implements its own login API. Inside that API, inject IAsgardJwtIssuer and issue a token after your own user validation succeeds.
app.MapPost("/login", (IAsgardJwtIssuer issuer) =>
{
var token = issuer.Issue(new AsgardJwtSubject
{
Subject = "user-1",
UserId = "user-1",
TenantId = "11111111-2222-3333-4444-555555555555",
Roles = ["user"],
Permissions = ["profile.read"],
Scope = ["api"]
});
return Results.Ok(token);
});
Resource Service Configuration
Asgard resource services do not need to reference this package. They keep using Asgard's built-in JWT authentication and point issuerTemplate to the issuer hosted by this package.
host:
auth:
enabled: true
jwt:
issuerTemplate: "https://auth.example.com"
audience: "asgard-api"
| 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
- Asgard.Heimdall.JwtSigning (>= 0.1.0)
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 |
|---|---|---|
| 5.4.0 | 32 | 8/6/2026 |
| 5.3.19 | 90 | 7/26/2026 |
| 5.3.18 | 90 | 7/26/2026 |
| 5.3.17 | 88 | 7/26/2026 |
| 5.3.16 | 90 | 7/26/2026 |
| 5.3.15 | 96 | 7/26/2026 |
| 5.3.14 | 102 | 7/22/2026 |
| 5.3.13 | 92 | 7/21/2026 |
| 5.3.12 | 105 | 7/21/2026 |
| 5.3.11 | 96 | 7/21/2026 |
| 5.3.10 | 95 | 7/21/2026 |
| 5.3.9 | 92 | 7/21/2026 |
| 5.3.8 | 90 | 7/21/2026 |
| 5.3.6 | 84 | 7/21/2026 |
| 5.3.5 | 92 | 7/21/2026 |
| 5.3.4 | 86 | 7/21/2026 |
| 5.3.3 | 93 | 7/21/2026 |
| 5.3.1 | 95 | 7/20/2026 |
| 5.3.0 | 101 | 7/20/2026 |
| 0.1.0 | 113 | 5/16/2026 |