A complete Web API application with JWT Bearer Token Authentication Using the .NET Core Web API, EF Core and Redis cache
Download package or open with Visual Studio
Check dependencies with NuGet
Configure Authentication controller for login credentials and appsettings.json, ensure Redis server is running in Linux or WSL for windows
Execute the following command in the Package Manager Console for the entity framework data migration and database updates before running the program, default configuration for MS Sql Server, change vendor as needed
add-migration “First”
update-databaseCreate the token after providing credentials, and put it into the Authorize tab inside Swagger UI, as shown in the below image
Follow the above steps and insert token as follow






