Jovanne.Jwks.Server 1.0.0

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

Jovanne.Jwks.Server

Pacote para aplicacoes ASP.NET Core que emitem tokens e precisam gerenciar chaves JWKS persistidas no banco de dados.

Este pacote concentra as dependencias de servidor: ASP.NET Core Identity, Entity Framework Core e o armazenamento de chaves JWKS.

Instalacao

dotnet add package Jovanne.Jwks.Server

Configuracao

Registre o servidor JWKS no Program.cs:

builder.Services.AddJovanneJwksServer<ApplicationUser, IdentityRole, ApplicationDbContext>();

O metodo registra:

  • AddJwksManager com assinatura RsaSsaPssSha256.
  • Persistencia das chaves JWKS via Entity Framework Core.
  • ASP.NET Core Identity com roles, stores do EF Core e token providers padrao.

Requisitos dos tipos genericos

where TRole : IdentityRole
where TUser : IdentityUser
where TDbContext : DbContext, ISecurityKeyContext

O ApplicationDbContext precisa herdar de DbContext e implementar ISecurityKeyContext.

Exemplo de DbContext

public class ApplicationDbContext :
    IdentityDbContext<ApplicationUser, IdentityRole, string>,
    ISecurityKeyContext
{
    public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
        : base(options)
    {
    }

    public DbSet<KeyMaterial> SecurityKeys { get; set; }
}

Consulte a documentacao do NetDevPack.Security.Jwt.Store.EntityFrameworkCore para os detalhes exatos exigidos por ISecurityKeyContext.

Dependencias

  • Microsoft.AspNetCore.App
  • Microsoft.AspNetCore.Identity.EntityFrameworkCore
  • NetDevPack.Security.Jwt.AspNetCore
  • NetDevPack.Security.Jwt.Store.EntityFrameworkCore
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 Jovanne.Jwks.Server:

Package Downloads
Jovanne.Jwks

Pacote agregador para configurar client e server JWKS em uma mesma aplicacao ASP.NET Core.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 50 6/24/2026