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.
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️⃣
/userdotnet user-jwts create -p .\src\WebApi
2️⃣
/admin-userdotnet user-jwts create -p .\src\WebApi --role Admin
3️⃣
/super-userdotnet user-jwts create -p .\src\WebApi --role Admin --role Manager
Tools : net 9.0