Skip to content

hsonhi/jwtauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWT Token Authentication Using the .NET Core Web API

A complete Web API application with JWT Bearer Token Authentication Using the .NET Core Web API, EF Core and Redis cache

Quick setup

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-database

OpenAPI/Swagger UI

Create the token after providing credentials, and put it into the Authorize tab inside Swagger UI, as shown in the below image

Postman

Follow the above steps and insert token as follow

About

JWT Bearer Token Authentication using the .NET Core Web API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages