.Net Core MVC Authentication & Role Based Authorization With Auth0

Поделиться
HTML-код
  • Опубликовано: 5 окт 2023
  • dotnet core mvc role based authorization with auth0
    aspnet core mvc role base authorization with auth0
    dotnet core mvc login
    dotnet core mvc authentication with auth0
    dotnet core auth0 authentication
    📎Source code: github.com/rd003/DotnetAuth0
    // auth 0 actions
    role:
    const assignedRoles = (event.authorization || {}).roles;
    api.idToken.setCustomClaim('schemas.microsoft.com/ws/2008/..., assignedRoles);
    email:
    if (!event.user.email_verified) {
    api.redirect.sendUserTo('{domain}/v2/logout?returnTo={allowed_url_in_logout_with_encyption}&client_id={clientId}')
    }
    .......................................................................................
    connect with me:
    👉 RUclips: / @ravindradevrani
    👉 Twitter: / ravi_devrani
    👉 GitHub: github.com/rd003
    👉 Medium.com: / ravindradevrani
    ..........................................
    Support my work:
    You can buy me a coffee 🍵 : www.buymeacoffee.com/ravindra...
    #aspnetcore #dotnet
  • НаукаНаука

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

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

    I was looking for these info for two days. Thanks

  • @andresbeltran5779
    @andresbeltran5779 Месяц назад

    great tutorial, some things have changed since the video was created. The roles part requires some changes to work currently, but nothing that can't be solved by doing a little research.

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

    Thank you so much for this.. much needed

  • @ahmadalmasri4416
    @ahmadalmasri4416 6 месяцев назад

    that was helpful
    Thank you

  • @Jean-kt9vb
    @Jean-kt9vb 7 месяцев назад

    Legend!

  • @0xHabibi
    @0xHabibi 5 месяцев назад

    Thank you so much for this video Mr Ravindra... it was so helpful. Please I wanted to ask, what's the name of your theme for visual studio? it's beautiful

  • @codingislife6387
    @codingislife6387 3 месяца назад

    Hy sir. How can we implement multiLevel authrization dynamiclly??
    instead of changing roles in code and redeploy application .
    Can we create dynamic and multilevel auth Admin => Qutation -> [Create ,update,deletet]
    please sir make lecture on it. please

  • @jananikannan2884
    @jananikannan2884 5 месяцев назад

    @ravindra devrani . I was followed step by step what you said above video.and am using visual studio 2022. .NETcore 6 but am facing below issue, could you please help me.
    error is: "An unhandled exception occurred while processing the request.
    ArgumentException: Options.ClientId must be provided (Parameter 'ClientId')
    Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectOptions.Validate()"

    • @ravindradevrani
      @ravindradevrani  5 месяцев назад

      Sorry, I m bad at resolving bugs of viewers.I really want to help but i find it hard to relate the error until i have the actual code.

    • @jananikannan2884
      @jananikannan2884 5 месяцев назад

      @@ravindradevrani may i know the version of visual studio code

    • @ravindradevrani
      @ravindradevrani  5 месяцев назад

      I was using vs 2022 and .net 7 on that project

    • @jananikannan2884
      @jananikannan2884 5 месяцев назад

      @@ravindradevrani we were seeking ur source code using github link you have mentioned in the caption. while clicking the github link , it was showing 404. Could you please provide the exact link, which was working fine.

    • @ravindradevrani
      @ravindradevrani  5 месяцев назад

      Sorry, I Accidently put the private repo.
      It is fine now. Click on the same link.

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

    I do not recommend this tutorial