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
<PackageReference Include="NetDevPack.Security.JwtExtensions" Version="9.0.1" />
<PackageVersion Include="NetDevPack.Security.JwtExtensions" Version="9.0.1" />
<PackageReference Include="NetDevPack.Security.JwtExtensions" />
paket add NetDevPack.Security.JwtExtensions --version 9.0.1
#r "nuget: NetDevPack.Security.JwtExtensions, 9.0.1"
#:package NetDevPack.Security.JwtExtensions@9.0.1
#addin nuget:?package=NetDevPack.Security.JwtExtensions&version=9.0.1
#tool nuget:?package=NetDevPack.Security.JwtExtensions&version=9.0.1
<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
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 | 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. |
-
.NETStandard 2.1
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 2.1.30)
- System.IdentityModel.Tokens.Jwt (>= 8.15.0)
- System.Text.Json (>= 10.0.2)
-
net10.0
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 10.0.2)
- System.IdentityModel.Tokens.Jwt (>= 8.15.0)
-
net8.0
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.10)
- System.IdentityModel.Tokens.Jwt (>= 8.15.0)
-
net9.0
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 9.0.12)
- System.IdentityModel.Tokens.Jwt (>= 8.15.0)
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.
|
v10.0.0:
- Simplifies loading JWKS from remote URIs
- Supports automatic key refresh scenarios
- Designed for JWT validation with asymmetric keys