NetDevPack.Security.JwtExtensions 9.0.1

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

<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.

Codacy Badge Build status License

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 NuGet Nuget

.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

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.Jwk

Note: The NetDevPack.Jwk is 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 Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (17)

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.
Version Downloads Last Updated
9.0.1 441 2/5/2026
9.0.0 97 2/5/2026
8.0.0 260,005 4/19/2024
7.1.0 42,498 2/8/2024
7.0.0 238,625 11/17/2022
6.0.2 169,771 4/18/2022
5.0.1 164,486 5/12/2021
1.0.1 94,302 8/5/2020
1.0.0 2,861 8/4/2020

v10.0.0:
   - Simplifies loading JWKS from remote URIs
   - Supports automatic key refresh scenarios
   - Designed for JWT validation with asymmetric keys