JWT API
Example API that shows how to implement JSON Web Token authentication and authorization with ASP.NET Core 3.1 (this fork will be upraded fully to ASP.NET Core 3.1 and implement a number of additional features in the near future).
Features
- User registration;
- Password hashing;
- Role-based authorization;
- Login via access token creation;
- Refresh tokens, to create new access tokens when access tokens expire;
- Rovoking refresh tokens.
Frameworks and Libraries
The API uses the following libraries and frameworks to deliver the functionalaties described above:
- Entity Framewok Core (for data access)
- AutoMapper (for mapping between domain entities and resource classes)