ASP.NET Core 7.0 Role Based Authorization || How to Implement Roles Based Authorization

preview_player
Показать описание
#roles #aspnetcore #aspnetcoremvc #AspnetIdentity #authorization
ASP.NET 7.0 Role Based Authorization || How to Implement Roles Based Authorization || Authorization and Authentication in ASP.NET CORE 7.0

The ASP.NET Core Identity is a membership system, which allows us to add authentication and authorization functionality to our Application. A user can create his/her own account with it and access the system, which is based on his/her roles or claims.
The authentication means who is the user. It is the process of verifying the identity of a user by the credentials. The back-end Application accesses after user successful login, so this login process is called authentication. The user holds the credential, which is the combination of the username and password.

The authorization means what user is allowed to do. It is the mechanism in the Application, which determines what level of access for resources by a particular action authenticates the user. Suppose an Application has a functionality to add and edit a user. The authorization mechanism determines who is allowed to add the user or who can edit a user.

💯 Remember to Buy Me Coffee

❤️ Thanks for watching. Share, Subscribe, Like and Comment Down Below
Рекомендации по теме
Комментарии
Автор

after IIS Deploy roles are not displaying. How to Fix that. my users, registration and loging all works fine in both Local and IIS deply. but only Roles are working in Local.

avipshamaity
Автор

Many thanks !! clean explanation. How to hide the inaccessible page in razor pages? this point is missed

tvsqleo
Автор

Nice work! Keep it up! The only problem here is that a new user will register and will create an admin role for himself. Then the user-new admin could do anything. I suppose you create the admin etc. and then you remove it from the register form.

michaeltheodoropoulos
Автор

You explained this whole thing very nicely

hassanabbas
Автор

i want to assign pages to roles and accordingly authorisation should work

PratikDhale
Автор

16:13 throws an exception that role is null. I'm unable to create roles.

keabetswemokwena
Автор

Have you done the video with the login for each role sir?

KweziNtikinca-eknu
Автор

can i change the assign role in register to the edit page of user rendering

phuclam
Автор

can you do the multiple roles of user, please. thanks

hermanreyes
Автор

Nice video!, but I can see Roles Page without log in!, how to fix that?

KevinMoralesP