This app shows how can we have a JWT Bearer Token used for Authentication. By default, the Token expiry is 5 minuutes which can be extended further.
Source: https://www.blinkingcaret.com/2017/09/06/secure-web-api-in-asp-net-core/
System.IdentityModel.Tokens.Jwt
- ASP.NET Core 2.1
- Visual Studio 2017 Pro
- GitHub
I have upgraded to ASP.NET Core 3.1 and working solution is attached in the branch aspnetcore3_1
Source: https://jasonwatmore.com/post/2019/10/11/aspnet-core-3-jwt-authentication-tutorial-with-example-api