Skip to content

aimenux/UserJwtsDemo

Repository files navigation

.NET

UserJwtsDemo

Using dotnet user-jwts to simplify working with jwt tokens

In this repo, i m using a dotnet user-jwts to illustrate how jwt tokens can be generated and applied in .net web api development.

Endpoints

The repo contains three endpoints, each secured with different role requirements. To access an endpoint, you need to generate a jwt token that includes the appropriate role.

1️⃣ /user

dotnet user-jwts create -p .\src\WebApi

2️⃣ /admin-user

dotnet user-jwts create -p .\src\WebApi --role Admin

3️⃣ /super-user

dotnet user-jwts create -p .\src\WebApi --role Admin --role Manager

Tools : net 9.0

About

Using dotnet user-jwts to simplify working with jwt tokens

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages