This project is a sample application that provides token-based authentication using .NET Core and JWT (JSON Web Token). It integrates with ASP.NET Core Identity and offers features such as user management, role-based authorization, and API protection.
- JWT-based authentication: Uses JWT to verify user credentials and provide secure access.
- User management: Integrates with ASP.NET Core Identity to provide user registration, login, and password management.
- Role-based authorization: Control API access by assigning roles to users.
- API protection: Secures your APIs against unauthorized access.
- Refresh token support: Includes a refresh token mechanism for long-lived sessions.
- Built with .NET Core: Runs on a modern and performant platform.
- Easy configuration: Easily customize project settings and authentication policies.
- .NET Core
- ASP.NET Core Identity
- Entity Framework Core
- JWT (JSON Web Token)
- Clone the repository:
git clone https://github.com/your-username/JWTAuthProject.git - Install the required dependencies:
dotnet restore - Configure the database settings in the
appsettings.jsonfile. - Run database migrations:
dotnet ef database update - Run the project:
dotnet run
This project can be used as an authentication server for your APIs. Your applications can send requests to authenticate users and obtain access tokens.
If you would like to contribute to the project, please submit a pull request.
This project is licensed under the MIT License.