/aspnetcore3-webapi-jwt-authentication-authorization

A simple ASP.NET Core 3.1 example API with JWT (Json Web Token) authentication and role support, using Dependency Injection, AutoMapper and multi-database support.

Primary LanguageC#MIT LicenseMIT

aspnetcore3-webapi-authentication-authorization

Build status (aspnetcore3-webapi-jwt-authentication-authorization)

A simple ASP.NET Core 3.1 example API with JWT (Json Web Token) authentication and role support, using Dependecy Injection, AutoMapper to map entities to DTOs, multi-database access with MultiDBHelper library and CryptHash.Net library to hash/verify user passwords.
This example uses a SQLite database file with the following example/test user records:

Table: Users

- Username: employee_user - Password (BCrypt hash): employee_password - Role: employee

- Username: manager_user - Password (BCrypt hash): manager_password - Role: manager