Blazor Azure B2C Authentication and Authorization

Ғылым және технология

aka.ms/dotNETConf2021-GetdotNET6
In this session we will cover how you can use Azure B2C authentication and authorization within your Blazor application to manage your users, and to allow your users to log in using their preferred social and enterprise logins. 👨‍💻 Slides & code: aka.ms/dotnetconf/2021
🎉 .NET 6 Release Blog: devblogs.microsoft.com/dotnet...
⬇ Download .NET 6: aka.ms/dotNETConf2021-GetdotNET6
🙋‍♀️🙋‍♂️ Get your questions answered on the Microsoft Q&A for .NET: aka.ms/dotnet-qa
💭 Join the .NET Tech Community Forums: aka.ms/dotnet/techcommunity
🏫 Learn C#, F#, and .NET with free self-guided learning from Microsoft Learn: aka.ms/learndotnet
#dotnet6 #dotnetconf #dotnet

Пікірлер: 25

  • @PaulMeems
    @PaulMeems2 жыл бұрын

    Thanks Michael, you've explained this to me a year ago and now again. You're still the only person I know that can explain this well!

  • @80amnesia
    @80amnesia8 ай бұрын

    This video is by far the best in explaining the setup

  • @chadbennett
    @chadbennett2 жыл бұрын

    BEST video I have seen on this. Been trying to do all of this for days and a few tips you had in here got me over the line. THANK YOU so much for putting this together.

  • @aikidoshi007
    @aikidoshi0072 жыл бұрын

    Brilliant! Thanks Michael.

  • @DE-sf9sr
    @DE-sf9sr2 жыл бұрын

    Awesome! Glad it's up!!

  • @bobweiram6321
    @bobweiram63212 жыл бұрын

    Hey Mike, that photo is over 20 years old and you haven't aged a bit. LOL!

  • @0s0n3gr0
    @0s0n3gr0 Жыл бұрын

    Thanks you Michael. You really helped me out with this

  • @ewer
    @ewer2 жыл бұрын

    Does someone have a good example/tutorial on how to implement Azure B2C with Blazor WebAssembly?

  • @robertical
    @robertical2 жыл бұрын

    Blazor web assembly is different. It would be great to have another one for that and to include calling APIs. This scenario is the simplest for configuration, the other ones are a lot more complex to setup specially when calling APIs. Also, using Microsoft.Graph you don't need to call http api directly, you can use the library to do all that using typed objects.

  • @adefwebserver

    @adefwebserver

    2 жыл бұрын

    I don't use it that much because I have found it doesn't handle *all* calls I want to make, however, I agree it would handle all the ones in the example code.

  • @davidbrenchley
    @davidbrenchley Жыл бұрын

    Examples for Blazor WASM please

  • @keithfranklin214
    @keithfranklin2142 жыл бұрын

    Can find the source code. Where was it moved?

  • @rarepanda3766
    @rarepanda37662 жыл бұрын

    Awesome video. I got 3 Questions: What is the best way to setup a Testenvironment - Whole new Azure Directory? Is there any easy way to use Logic Apps or Event Grid with Azure B2C? Can you show a Multitenant Setup example - Only way is Security Groups in MS Graph?! - - Thanks a lot :)

  • @adefwebserver

    @adefwebserver

    2 жыл бұрын

    1) I set up a whole new B2C Tenant (they are free) 2) Sorry no examples 3) Use Security groups. Each Azure B2C Tenant is "One Tenant"

  • @chadbennett
    @chadbennett2 жыл бұрын

    Sorry to ask, but I am pulling what little hair I have left out. I can't find any example of how to setup sections of a Blazor Server web app that don't require the user to login or even be prompted with any the b2c path. Is it a custom path, or something with the routes or ms identity or ? There has to be a way to have a public facing website that doesn't require any login to see the base pages and they prompted to login only when you go to certain areas. THANK YOU so much for any help you can lend.

  • @crosswindkev

    @crosswindkev

    Жыл бұрын

    You probably have a default policy configured. builder.Services.AddAuthorization(configure: options => { // By default, all incoming requests will be authorized according to the default policy options.FallbackPolicy = options.DefaultPolicy; });

  • @newyearshiphop
    @newyearshiphop Жыл бұрын

    You look like Denzel Washington for real

  • @onionhammer
    @onionhammer Жыл бұрын

    User flows are too limiting and custom policies are too complex :/

  • @zlotamoneta
    @zlotamoneta2 жыл бұрын

    There is no such thing as Groups in Azure AD B2C. Information partly is misleading (screen shows Azure Active Directory). Michael has created Group through Azure Active Directory which is on the same tenant as Azure AD B2C.

  • @distinguishedmoments2277
    @distinguishedmoments22772 жыл бұрын

    It's just way more complicated than hosting my own identity server, sorry

  • @adefwebserver

    @adefwebserver

    2 жыл бұрын

    The Conditional Access Polices and advanced MFA is the "Value Add" in my opinion

  • @isachells9859

    @isachells9859

    2 жыл бұрын

    @@adefwebserver Yes you are right, there is actually a bunch of value on here, Don't know why i would even write such a toxic comment. cheers buddy

  • @adefwebserver

    @adefwebserver

    2 жыл бұрын

    @@isachells9859 No worries :)

  • @SridharSathya
    @SridharSathya2 жыл бұрын

    Best tutorial for AAD-B2C . If only he had indicated how to unprotect a page I would have given it 6 out of 5 🤩. To have unprotected pages in your application locate: options.DefaultPolicy in Program.cs and comment the line.

  • @bobbeasley

    @bobbeasley

    2 жыл бұрын

    Thank you for this reply regarding unprotected pages!

Келесі