Skip to content

This project is a .NET 6 application showcasing a robust authentication system using refresh tokens, Identity framework, SQL Server for data storage, JWT authentication, and protected routes.

License

Notifications You must be signed in to change notification settings

N1k0l1n/DotNet6-Identity-Jwt

Repository files navigation

.NET 6 Project: Refresh Token Login with Identity, SQL Server, JWT, and Protected Routes

This project is a .NET 6 application showcasing a robust authentication system using refresh tokens, Identity framework, SQL Server for data storage, JWT authentication, and protected routes.

Features

  • Refresh Token Login: Implementing a secure login system using refresh tokens for extended authentication sessions.
  • Identity Framework: Leveraging .NET's Identity framework for managing users, roles, and authentication.
  • SQL Server: Utilizing SQL Server as the database to store user information and authentication data securely.
  • JWT Authentication: Implementing JSON Web Tokens (JWT) for secure authentication and authorization of users.
  • Protected Routes: Configuring routes that require authentication and authorization, ensuring secure access to specific endpoints.

Setup Instructions

To run this project locally, follow these steps:

Run the application:

bash Copy code dotnet run The application should now be running on localhost:5000.

Usage

Register: Create a new user account using the provided registration endpoint. Login: Obtain an access token and a refresh token upon successful login. Protected Routes: Access endpoints that require authentication by providing the generated JWT token in the request headers. Refresh Tokens: Refresh access tokens using refresh tokens to extend authentication sessions.

Contribution

Contributions are welcome! If you'd like to contribute to this project, fork the repository, make your changes, and submit a pull request.

License

This project is licensed under the MIT License. Feel free to customize this template according to your project's specifics, including more detailed setup instructions, API endpoints, or any additional features!

About

This project is a .NET 6 application showcasing a robust authentication system using refresh tokens, Identity framework, SQL Server for data storage, JWT authentication, and protected routes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages