ASP.NET Core 7.0 Role Based Authorization || How to Implement Roles Based Authorization
HTML-код
- Опубликовано: 10 сен 2024
- #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
► Subscribe to me on RUclips:youtube.com/@M....
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.
💯 Use the following link as well to subscribe. youtube.com/@M....
💯 Remember to Buy Me Coffee
www.buymeacoff...
❤️ Thanks for watching. Share, Subscribe, Like and Comment Down Below
Subscribe to me on youtube.com/@MacroCoding?sub_confirmation=1
Do you have a video that implements Role Claims ?
@@TheRevworx Thanks for watching...Will be posting this...stay tuned and subscribe
You explained this whole thing very nicely
Thank you..Subscribe for more Updates
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.
Thanks for the idea!.Subscribe for more Updates
@@MacroCoding yes please sir i also have the same query please make a video to address this update
Nice
Thanks..Subscribe for more
Many thanks !! clean explanation. How to hide the inaccessible page in razor pages? this point is missed
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.
i want to assign pages to roles and accordingly authorisation should work
16:13 throws an exception that role is null. I'm unable to create roles.
can i change the assign role in register to the edit page of user rendering
Yes you can..Please Subscribe for more updates
can you do the multiple roles of user, please. thanks
Thank you for watching..Subscribe for more 🙏🙏🙏🙏
Have you done the video with the login for each role sir?
Hi Yes, have implemented this...will be sharing the video soon
Nice video!, but I can see Roles Page without log in!, how to fix that?
Hi @Kevin ..This was just a demo we will be doing a complete video..Subscribe
@@MacroCoding ahh..ok bro!, I want to see the video soon 😎!!,
@@KevinMoralesP Yes..Will be doing the vidoe soon..Keep in touch
can you share source code
Yes @jayakumar2927....Will share please subscribe and like the video for more updates
It’s not displaying the roles just name and normalizedname
@@francisopogah363 Will be doing a complete video on this subscribe and keep intouch
@@francisopogah363 You just need to include item in the for loop.
@foreach (var item in Model)
{
@Html.DisplayFor(modelItem => item.Id)
@Html.DisplayFor(modelItem => item.Name)
@Html.DisplayFor(modelItem => item.NormalizedName)
}
@@MacroCoding Waiting for Github code