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