Skip to content

NetDevPack/Security.JwtExtensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET DevPack

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.

About

Component for easy use of JWKS endpoint for Assymetric keys

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages