asp.net core 6 jwt authentication - OAuth 2.0 Client Credentials Grant
- Visual Studio 2022
- .NET Core 6.0
- If using Linux here is the guide on how to install .net core 6 on ubuntu 22.04
- If using Mac here is the easier way how to install .net core on mac
- Api testing tool PostMan or we can use free tool Talent API Tester Chrome plugin
- Nugget Packages used (pay attention to version numbers)
Microsoft.AspNetCore.Authentication.JwtBearer Version 6.0.11
Microsoft.IdentityModel.Tokens Version 6.25.1
System.IdentityModel.Tokens.Jwt Version 6.25.1
Prerequisite Knowledge
- Do you know basics of Json Web Token? If not then Visit jwt.io for learning more about JWT . Chris has also provided good details about JWT info.
- Are you familiar about difference between authentication vs authorization here very brief write up on this?
- Are your aware of filters concept in asp.net core ? Let’s have a brief intro on filters.
the topics are related and covered asp.net core web api authentication jwt asp.net core api jwt authentication asp.net core 6 jwt authentication asp.net core web api jwt authentication .net 6 jwt authentication c# create jwt deserialize jwt token c# jwt token c# .net core