Back to Browse

Create Custom Role Based Authentication In Asp.net Core MVC Application - Complete Tutorial

17.2K views
Jan 14, 2025
38:04

Welcome to this comprehensive tutorial on Custom Role-Based Authentication in ASP.NET Core MVC! In this step-by-step guide, you’ll learn how to create a fully functional role-based authentication system for your MVC application from scratch. 🔑 What You’ll Learn: 1. App Overview and Demo o A walkthrough of the app functionality, including login, registration, email verification, role-based navigation, and access control. 2. Project Setup o Create a new ASP.NET Core MVC project and import necessary packages and assets. 3. Database and Models o Design and implement models, including Users and roles, and configure the application database context. o Generate and connect the database using Entity Framework Core. 4. Identity Configuration o Configure Identity options for password policies, sign-in requirements, and more. 5. Seeding Data o Use a service class to seed roles (e.g., Admin, User) and create a default admin account. 6. View Models o Create essential view models for login, registration, email verification, and password management. 7. Custom Login Partial o Build a reusable login partial view for displaying user authentication status and navigation options. 8. Account Layout o Create a custom layout for login and registration pages to provide a consistent user experience. 9. Custom Login and Register Pages o Develop fully customized login and registration pages with tailored styles and functionality. o Implement HTTP POST methods to handle user authentication and registration. 10. Email Verification and Password Management o Create a simple email verification page to validate user emails. o Design a custom change password page to enable secure password updates. 11. Logout Functionality o Implement a logout method that ensures user sessions are securely terminated. 12. Role-Based Authorization o Create authorized views accessible only to specific roles (e.g., Admin, User). o Add dynamic navigation that displays links based on the logged-in user's roles. 🎯 Who Is This For? This video is perfect for developers looking to implement secure, role-based authentication in their ASP.NET Core MVC applications. Whether you’re a beginner or an experienced developer, this tutorial covers all the essential steps in a clear and practical manner. 🚀 By the End of This Video: You’ll have a fully functional role-based authentication system integrated into your ASP.NET Core MVC application, including: • User login and registration. • Role-based access control. • Dynamic navigation tailored to user roles. • A secure, scalable foundation for your web application. Source Code: - Github: https://github.com/FLDevelopers/ASP.NET-Core-MVC-with-Role-Based-Authentication-and-Authorization Chapters: - 00:00 1. App Demo 01:54 2. Create Project & Import Packages and Assets 03:11 3. Create Models, AppDbContext & Database 05:36 4. Add Identity Framework Configurations 06:24 5. Seed Data To Database Using Custom Service Method 10:39 6. Create View Models 14:38 7. Create Login Partial 16:29 8. Create Account Layout For Login & Register Pages 17:23 9. Create Custom Login Page 23:03 10. Create Custom Register Page 27:16 11. Create Custom Email Verification Page 29:54 12. Create Custom Change Password Page 33:59 13. Create Logout Method 34:55 14. Create Role Based Authorized Pages 36:32 15. Test Role Based Authentication & Authorization Related Videos: 1. Create Custom Login, Registration, Email Verify And Forgot Password Pages In Asp.Net Core MVC App: https://youtu.be/hthzKj05w3w 2. Create Role Based User Management API Using Dynamic Policies In Asp.Net Core Web API: https://youtu.be/beIEysfQxGo 3. Create Role Based User Management App In Flutter With Asp.Net Core Web API as Backend From Scratch: https://youtu.be/Jdil0z11HG4 4. Create Camera App From Scratch In Flutter: https://youtu.be/j2xMGZ1XcMo 5. Connect Flutter With Asp.Net Core Web API To Run On Emulator & Real Device: https://youtu.be/PAY6TqIEVZI 6. ASP.NET Core Web API with JWT Authentication & Refresh Tokens using SQL Server + Identity Server: https://youtu.be/ZBKJZyccwcE I hope, you'll like this video. If you have any question related to this video then ask in comments section without any hesitation. Also Don't forget to like this video and share it with your friends. ------------------------------------------------------------------------------------- Join WhatsApp Channel: https://whatsapp.com/channel/0029VaE0W6HA2pLH5dN39n36 Facebook Page Link: https://www.facebook.com/Free_Trained Please Subscribe Our YouTube Channel For More interesting Videos And Don't Forget To Share Our Channel With Your Friends. Note: *Please Turn Off Any Ad Blocker Software or add-on to support us. #aspnetcore #mvc #custom #course #tutorial #programming #coding #csharp #code #login #registration #emailverification #changepassword #role #authentication #authorization #learning

Download

0 formats

No download links available.

Create Custom Role Based Authentication In Asp.net Core MVC Application - Complete Tutorial | NatokHD