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

Комментарии • 30

  • @MacroCoding
    @MacroCoding  Год назад +4

    Subscribe to me on youtube.com/@MacroCoding?sub_confirmation=1

    • @TheRevworx
      @TheRevworx Год назад +1

      Do you have a video that implements Role Claims ?

    • @MacroCoding
      @MacroCoding  Год назад +1

      @@TheRevworx Thanks for watching...Will be posting this...stay tuned and subscribe

  • @hassanabbas2828
    @hassanabbas2828 Год назад +2

    You explained this whole thing very nicely

    • @MacroCoding
      @MacroCoding  Год назад +1

      Thank you..Subscribe for more Updates

  • @michaeltheodoropoulos3352
    @michaeltheodoropoulos3352 9 месяцев назад +2

    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.

    • @MacroCoding
      @MacroCoding  9 месяцев назад

      Thanks for the idea!.Subscribe for more Updates

    • @Linuro001
      @Linuro001 9 месяцев назад

      @@MacroCoding yes please sir i also have the same query please make a video to address this update

  • @Melika-u5j
    @Melika-u5j 23 дня назад

    Nice

  • @NagarroAspirant
    @NagarroAspirant 11 месяцев назад +2

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

  • @avipshamaity
    @avipshamaity 2 месяца назад

    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.

  • @PratikDhale
    @PratikDhale 8 месяцев назад +1

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

  • @keabetswemokwena7498
    @keabetswemokwena7498 4 месяца назад

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

  • @phuclam978
    @phuclam978 Год назад +2

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

    • @MacroCoding
      @MacroCoding  Год назад +2

      Yes you can..Please Subscribe for more updates

  • @hermanreyes2400
    @hermanreyes2400 6 месяцев назад +1

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

    • @MacroCoding
      @MacroCoding  6 месяцев назад +1

      Thank you for watching..Subscribe for more 🙏🙏🙏🙏

  • @KweziNtikinca-ek5nu
    @KweziNtikinca-ek5nu Год назад +1

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

    • @MacroCoding
      @MacroCoding  Год назад +1

      Hi Yes, have implemented this...will be sharing the video soon

  • @KevinMoralesP
    @KevinMoralesP Год назад +1

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

    • @MacroCoding
      @MacroCoding  Год назад +1

      Hi @Kevin ..This was just a demo we will be doing a complete video..Subscribe

    • @KevinMoralesP
      @KevinMoralesP Год назад +1

      @@MacroCoding ahh..ok bro!, I want to see the video soon 😎!!,

    • @MacroCoding
      @MacroCoding  Год назад

      @@KevinMoralesP Yes..Will be doing the vidoe soon..Keep in touch

  • @jayakumar2927
    @jayakumar2927 Год назад +1

    can you share source code

    • @MacroCoding
      @MacroCoding  Год назад +1

      Yes @jayakumar2927....Will share please subscribe and like the video for more updates

    • @francisopogah363
      @francisopogah363 Год назад +1

      It’s not displaying the roles just name and normalizedname

    • @MacroCoding
      @MacroCoding  Год назад +1

      @@francisopogah363 Will be doing a complete video on this subscribe and keep intouch

    • @eugenefischer9948
      @eugenefischer9948 Год назад

      @@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)

      }

    • @jayakumar2927
      @jayakumar2927 8 дней назад

      @@MacroCoding Waiting for Github code