Connect your Blazor Web App to Microsoft Entra ID (.NET 8)

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024

ความคิดเห็น • 31

  • @Opilio
    @Opilio 5 หลายเดือนก่อน +3

    Very easy to follow & clear. Thanks, you've saved me a lot of time upgrading my applications to .NET 8!

  • @bohansen2960
    @bohansen2960 9 วันที่ผ่านมา

    Great! So Nice with a simple demo. It works :). But unable to logout? Hmmmm How is that done. Not as easy or im missing something :)

  • @KanokpitsunLertprommakul
    @KanokpitsunLertprommakul 4 หลายเดือนก่อน

    Thanks, easy to learn step by step, 👍

  • @bigdan7281
    @bigdan7281 20 วันที่ผ่านมา

    Just what I needed - brief and complete - thank you.

  • @rishwanthgourishetty3257
    @rishwanthgourishetty3257 15 วันที่ผ่านมา

    video is very clear and to the point

  • @rishwanthgourishetty3257
    @rishwanthgourishetty3257 15 วันที่ผ่านมา

    Thanks a lot , saved my day

  • @miguelblanco3484
    @miguelblanco3484 หลายเดือนก่อน

    I couldn't help noticing the cat box, I have exactly the same one, but I don't have a cat yet ;-/
    I wonder if you need a cat at home to be a good programmer.

    • @CodeWithAnjuli
      @CodeWithAnjuli  หลายเดือนก่อน

      @@miguelblanco3484 nice that you have the same one! I don't think you need a cat to be a good programmer, but I think it will make you a happier programmer 😊

  • @Spud9
    @Spud9 หลายเดือนก่อน

    Thank you so much

  • @roman-tp6sd
    @roman-tp6sd 13 วันที่ผ่านมา

    Tnx Anjuli !!!

  • @JohnSmith-yr7ih
    @JohnSmith-yr7ih 6 หลายเดือนก่อน +1

    Hi! Thanks for viseo. can you please make a tutorial of aspNet web api + Blazor webassembly standalone app (not a `BlazorApp` or `Blazor Server` templates) Identity auth tutotial (new way, .net 8)? register, login, logout features

    • @CodeWithAnjuli
      @CodeWithAnjuli  6 หลายเดือนก่อน +1

      Hi! I will look into it and make a video when I can make it work :)

  • @lufve12
    @lufve12 5 หลายเดือนก่อน +1

    Very instructive video, but I only have one question: how can I implement a logout?

    • @CodeWithAnjuli
      @CodeWithAnjuli  5 หลายเดือนก่อน +2

      I will try to make an example in my Github repository soon

    • @marcopenroz649
      @marcopenroz649 4 หลายเดือนก่อน

      @@CodeWithAnjuli Hello, thank you, excellent contribution. I reviewed the code and the logout does not work, starting because the project does not compile, could you guide me in the correction please?
      Traducir

    • @CodeWithAnjuli
      @CodeWithAnjuli  4 หลายเดือนก่อน

      @marcopenroz649 thank you! I will let you know when I have a working example

  • @majormartintibor
    @majormartintibor หลายเดือนก่อน

    Probably might save some folks a bit of time and frustration: to log in you need the full principal name not just the first part. If you only type the name part you'll get "invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application."
    Now don't let that fool you, you set up everything correctly, no need to triple check your redirect uris for typos. What I think is happening in the background is that a name is found in SOME tenant, but most likely not yours and that causes the issue. You can clearly see the difference if you type in some nonsense random string as username: "We couldn't find an account with that username.".

    • @CodeWithAnjuli
      @CodeWithAnjuli  หลายเดือนก่อน +1

      @@majormartintibor thank you for clarifying! I will ask around about this problem

  • @simondevlin4069
    @simondevlin4069 4 หลายเดือนก่อน

    Super easy to follow, thanks!

  • @Muhil_kannan_
    @Muhil_kannan_ 2 หลายเดือนก่อน

    Is there anything for logout?

    • @CodeWithAnjuli
      @CodeWithAnjuli  2 หลายเดือนก่อน +1

      I'm looking into it! I will let you know when I find somethng and add it in my repo

  • @2Clairvoyance
    @2Clairvoyance 5 หลายเดือนก่อน

    Great video, thank you. One question, is there anything you need to configure on the client side project for Entra ID?

    • @CodeWithAnjuli
      @CodeWithAnjuli  5 หลายเดือนก่อน +1

      Yes, installing the identity package, the settings in the appsettings.json and the code in the Program.cs. You can find an example in my repository

  • @liam2161
    @liam2161 6 หลายเดือนก่อน

    Thanks for sharing. Have you found a way to pull in application roles from the Entra ID enterprise application. If I create some custom roles in the app manifest I cant seem to use them with [Authorize(Role = "Admin")]. Maybe its not supported.

    • @CodeWithAnjuli
      @CodeWithAnjuli  6 หลายเดือนก่อน

      I've not tried this myself but I will look into it when I have time 🙂

    • @lufve12
      @lufve12 5 หลายเดือนก่อน

      @@CodeWithAnjuli I took your example and tried it out. it works. But nor Role - [Authorised(Roles="role")]. With a special feature: if you use the wrong “role” you get 404 back.

  • @allied-data
    @allied-data 3 หลายเดือนก่อน

    Excellent presentation. Keep it up.

    • @CodeWithAnjuli
      @CodeWithAnjuli  3 หลายเดือนก่อน

      @@allied-data thank you!

  • @pvanroos
    @pvanroos 2 หลายเดือนก่อน

    /authentication/logout results in a 404 for my Blazor App which mirrors yours in this tutorial

    • @CodeWithAnjuli
      @CodeWithAnjuli  2 หลายเดือนก่อน

      @@pvanroos true, that's not build-in with this template, which normally is in previous .NET versions. It's on my list of things to add to my repository