Skip to content

Tola-lemma/Authentication_and_Authorization-using-JWT-C_SHARP_WEB_API

Repository files navigation

Authentication and Authorization using JWT in C# Web API

This project demonstrates how to implement user management, authentication, and authorization in a C# Web API using JSON Web Tokens (JWT). The project is built using .NET 6.

Requirements

To run this project, you will need:

  • Visual Studio 2022 or later .NET 6 SDK
  • Postman or a similar API development tool
  • On this project Swagger is used

Technologies Used

  • .NET 6
  • JWT (JSON Web Tokens)

Features

  • User management
  • Authorization and authentication

Installation

  1. Clone the repository
  2. Open the solution in Visual Studio 2022 or newer
  3. Build the solution
  4. Run the project

Usage

  1. Register a new user
  2. Login with the registered user credentials
  3. Use the JWT token obtained from the login response to access authorized resources

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Releases

No releases published

Packages

No packages published

Languages