A full-stack ASP.NET Core MVC web application built using the Code-First approach with Entity Framework Core and Microsoft Identity for robust authentication and role-based access control. It features scaffolded Identity UI pages for rapid development and user management.
- ✅ ASP.NET Core MVC architecture
- ✅ Code-First Entity Framework Core database setup
- ✅ Microsoft Identity for authentication and role-based access control
- ✅ Scaffolded Identity pages for login, register, user roles, etc.
- ✅ Secure authorization using
[Authorize]attributes - ✅ Responsive UI using Bootstrap (or your CSS framework of choice)
- ASP.NET Core MVC
- Entity Framework Core (Code-First)
- Microsoft Identity
- SQL Server or SQLite (configurable)
- Bootstrap 5 (or other CSS frameworks)
git clone https://github.com/your-username/project-name.git
cd project-namedotnet ef database updateEnsure dotnet-ef is installed globally with:
dotnet tool install --global dotnet-efdotnet runThis project includes scaffolded Identity pages for:
-
User registration and login
-
Role management
-
Password reset and email confirmation
Example usage:
[Authorize(Roles = "Admin")]
public IActionResult AdminOnly()
{
return View();
}Roles can be seeded or managed directly in the database.
Custom pages are located in Areas/Identity/Pages/Account