Skip to content

This project demonstrates how to implement Role-Based Authorization using ASP.NET Core Identity. It includes user authentication, role management, and secure access control for different user roles (e.g., Admin, User, Manager).

Notifications You must be signed in to change notification settings

smraju115/.NET-Core-Identity-RoleBasedAuthorization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ASP.NET Core Identity with Role-Based Authorization 🚀 Overview This project demonstrates how to implement Role-Based Authorization using ASP.NET Core Identity. It includes user authentication, role management, and secure access control for different user roles (e.g., Admin, User, Manager).

🔹 Tech Stack

ASP.NET Core 8.0 (or your version) Entity Framework Core 8.0 SQL Server Bootstrap

Features

✅ User Registration & Login

✅ Role Management (Admin, User, etc.)

✅ Restrict Access Based on Roles

✅ Database Integration with Identity Tables

✅ Claims-Based Authorization

Setup Instructions 1️⃣ Clone the Repository

bash Copy Edit git clone https://github.com/smraju115/.NET-Core-Identity-RoleBasedAuthorization.git cd ASP.NET-Core-Identity-RoleBasedAuthorization 2️⃣ Update Database Connection (in appsettings.json)

json Copy Edit "ConnectionStrings": { "DefaultConnection": "Server=YOUR_SERVER;Database=YourDB;Trusted_Connection=True;" } 3️⃣ Apply Migrations & Update Database

bash Copy Edit dotnet ef migrations add InitialCreate dotnet ef database update 4️⃣ Run the Application

bash Copy Edit dotnet run

About

This project demonstrates how to implement Role-Based Authorization using ASP.NET Core Identity. It includes user authentication, role management, and secure access control for different user roles (e.g., Admin, User, Manager).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published