https://github.com/alecgn/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.
https://github.com/alecgn/aspnetcore3-webapi-jwt-authentication-authorization
Last synced: 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/alecgn/aspnetcore3-webapi-jwt-authentication-authorization
- Owner: alecgn
- License: mit
- Created: 2019-11-12T15:33:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-25T22:25:36.000Z (almost 4 years ago)
- Last Synced: 2025-02-01T07:16:00.726Z (4 months ago)
- Language: C#
- Homepage:
- Size: 51.8 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aspnetcore3-webapi-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