Skip to content
0:00 / 0:00

#asp.netcore#entityframeworkcore#microsoftidentity

ASP.NET Core - Permission Based Authorization - Complete User Management Guide

Sarrawy Dev

3K subscribers • 3 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • A classic. People kept recommending it from 2021 to 2024.
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

13K views5 years ago2 recommendations

Web developmentSecurityHTTP, REST and GraphQLWeb and application security

How to implement permission-based authorization and user role management from scratch in ASP.NET Core using Microsoft Identity.

EF Core Slowing You Down? We Fixed That. 🛠️ Bulk Insert, Update, Delete & Merge — all with blazing-fast extension methods fully integrated into EF Core. 🔗 Check it out here: entityframework-extensions.net/?utm_source=sarrawydev&utm_me… Please donate 👇👇🙂 paypal.com/paypalme/sarrawy?country.x=JO&locale.x=en-us In this video, we will implement a complete Permission-Based Authorization in ASP.NET Core using .NET 5 and Microsoft Identity package. We built the entire system from scratch to control the level of authorization on the basis of User Roles. The SuperAdmin will be able to control the permission and add new roles as well. This is a neat way to secure your ASP.NET Core Web Applications from users with limited permissions. What’s Role-Based Authorization? Role-Based Authorization in ASP.NET Core is a way to restrict/allow users to access specific resources in the application. The [Authorize] attribute when declared in the Controller or any action methods, restricts users bases on his/her role settings. For instance, the Delete method is accessible only to users who have the Role ‘SuperAdmin’ assigned to them, and so on. You are getting the point, yeah? When run the application , with SuperAdmin credentials. Navigate to /products. As excepted, the superadmin has access to all the features of the Product module Features : - User List – To display all the registered users - Roles List – To Display / Add Roles - User – Roles Management – To assign various roles to each user. - Default Seeding – Seed default roles and users on application startup - Permission Management – Role-based permissions controller - Dummy Products Management – To Create / Read / Modify Products (Note that this will not be implemented completely). The aim is to dynamically restrict users based on their roles from various actions on the Product Entity. For instance, only Admins can modify the data. asp.net mvc authorization and authentication asp.net authorization negotiate asp.net core authorization options asp.net authorization policy asp.net authorization path asp.net authorization programmatically asp.net authorization provider asp.net page authorization asp.net post authorization asp net core authorization policy from database asp.net authorization roles asp.net authorization roles from database asp.net role permission asp.net authorization rules asp.net 5 authorization asp.net core authorization view asp.net menu user permission asp.net use authorization asp.net authorization user asp.net mvc authorization tutorial asp.net core authorization tutorial asp.net authorization tutorial asp.net authorization set mvc permissions mvc permissions roles mvc permission based security mvc permission controller spring mvc permissions mvc menu permission mvc app permissions asp.net mvc permission attribute permission mvc asp.net mvc permission permission based mvc asp.net core permission based authorization asp.net core use

Why it's here

2 people recommend this

u/DotNetCSharpin r/ProgrammingLanguages • Recommends

ASP.NET Core - Permission Based Authorization - Complete User Management Guide 🔥👍

u/Miserable_Ladder_189in r/dotnet • Recommends

ASP.NET Core - Permission Based Authorization - Complete User Management Guide