This repository contains a basic code base for implementing authentication and authorization using Identity Framework in a .NET Core application with PostgreSQL as the database.
Authentication and authorization are fundamental aspects of many web applications. This project demonstrates how to set up a .NET Core application with Identity Framework to manage user authentication and authorization. PostgreSQL is used as the database for storing user information and related data.
Before you begin, ensure you have met the following requirements:
- Visual Studio or Visual Studio Code for C# development.
- .NET Core SDK installed.
- PostgreSQL database server installed.
-
Set up your PostgreSQL database and update the connection string in
appsettings.json
to point to your database. -
Open the solution in your preferred development environment (e.g., Visual Studio or Visual Studio Code).
-
Build and run the application.
- User registration and login.
- Role-based authorization.
- Manage user profiles and roles.
- Secure password hashing.
- Register a new user on the application.
- Log in with your registered credentials.
- Explore the different features and roles based on your permissions.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Create a pull request to this repository's main branch.
This project is licensed under the MIT License.