NetDevPack.Security.JwtExtensions
10.0.0
dotnet add package NetDevPack.Security.JwtExtensions --version 10.0.0
NuGet\Install-Package NetDevPack.Security.JwtExtensions -Version 10.0.0
<PackageReference Include="NetDevPack.Security.JwtExtensions" Version="10.0.0" />
<PackageVersion Include="NetDevPack.Security.JwtExtensions" Version="10.0.0" />
<PackageReference Include="NetDevPack.Security.JwtExtensions" />
paket add NetDevPack.Security.JwtExtensions --version 10.0.0
#r "nuget: NetDevPack.Security.JwtExtensions, 10.0.0"
#:package NetDevPack.Security.JwtExtensions@10.0.0
#addin nuget:?package=NetDevPack.Security.JwtExtensions&version=10.0.0
#tool nuget:?package=NetDevPack.Security.JwtExtensions&version=10.0.0
<img src="https://repository-images.githubusercontent.com/268701472/8bf84980-a6ce-11ea-83da-e2133c5a3a7a" alt=".NET DevPack" width="300px" />
What is the .NET DevPack JwtExtensions?
.NET DevPack JwtExtensions was created to help you validate Bearer tokens from Jwks endpoint. It configure your ASP.NET Core with JWT Bearer Token using a Custom JWKS Endpoint. Giving hability to leverage the security of your environment using Assymetric Keys. Which is by far a most recommended cryptography to digitally signin you JWT.
Give a Star! ⭐
If you liked the project or if NetDevPack helped you, please give a star 😉
Get Started
| Package | Version | Popularity |
|---|---|---|
NetDevPack.Security.JwtExtensions |
.NET DevPack.JwtExtensions can be installed in your ASP.NET Core application using the Nuget package manager or the dotnet CLI.
dotnet add package NetDevPack.Security.JwtExtensions
Compatibility
| Version | Target frameworks |
|---|---|
| 10.x | .NET 10 (LTS) |
| 9.x | .NET Standard 2.1, .NET 8, .NET 9, .NET 10 |
Breaking change in v10: .NET Standard 2.1, .NET 8 and .NET 9 are no longer targeted. .NET 8 and .NET 9 are out of support since 2026-11-10, and the
netstandard2.1target pulled ASP.NET Core 2.1 packages with known vulnerabilities. If you need them, stay on 9.x. The public API did not change.
Then use Extension at configuration in ConfigureServices method of your Startup.cs:
services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(options =>
{
options.SetJwksOptions(new JwkOptions("https://localhost:5001/jwks"));
});
Configuring JWT
If you want to generate JSON Web Tokens in your application you need to add the NetDevPack.Jwk.
Note: NetDevPack.Security.JwtExtensions is for those who already have an api who use
NetDevPack.JwkNote: The
NetDevPack.Jwkis a set of components who will generate Keys using industry security best standards (NIST Rotating keys, RSA Key Length, ECDsa P-256). It's supports Elliptic Curves and RSA as well.
Examples
Use the sample application to understand how NetDevPack.Security.JwtExtensions can be implemented and help you to decrease the complexity of your application and development time.
About
.NET DevPack.JwtExtensions was developed by Bruno Brito under the MIT license.
| 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.15)
- System.IdentityModel.Tokens.Jwt (>= 8.23.0)
NuGet packages (18)
Showing the top 5 NuGet packages that depend on NetDevPack.Security.JwtExtensions:
| Package | Downloads |
|---|---|
|
DataC.CoreApi
Pacote core de desenvolvimento sistemas Data C |
|
|
RuoVea.ExJwtBearer
Jwt 授权验证拓展插件。声名:IJwtHelper _jwtHelper,支持简体中文、繁体中文、粤语、日语、法语、英语.添加验权:services.AddAuthenticationSetup(enableGlobalAuthorize: true);添加鉴权:services.AddAuthorizationSetup.MyPermission.(enableGlobalAuthorize: true);添加Jwt加密:services.AddJwtSetup(); |
|
|
CEApi.Core
Package Description |
|
|
Hydra.Core.API
This package is an extension library for Web Api! |
|
|
IERP.WebAPI.Core
Pacote de utilidades para APIs |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on NetDevPack.Security.JwtExtensions:
| Repository | Stars |
|---|---|
|
anjoy8/Blog.Core
💖 ASP.NET Core 8.0 全家桶教程,前后端分离后端接口,vue教程姊妹篇,官方文档:
|
|
|
desenvolvedor-io/dev-store
A microservices e-commerce reference application built with ASP.NET 9
|
|
|
NetDevPack/Security.Jwt
Jwt Manager. Set of components to deal with Jwt Stuff. Automate your key rotating, add support for jwks_uri. Store your cryptography keys in a secure place.
|
- Targets net10.0 only (netstandard2.1, net8.0 and net9.0 were removed)
- Loads JWKS from remote URIs for JWT validation with asymmetric keys
- Supports automatic key refresh scenarios