Blazor Azure B2C Authentication and Authorization
Ойын-сауық
Azure Active Directory B2C is a service that allows your Blazor website users to log in using their preferred social, enterprise logins (or they can create a new local account in your Azure B2C tenant). Because this is a Azure Active Directory tenant, you have access to powerful features such as Multi Factor Authentication and Conditional Access control.
Пікірлер: 21
Gracias por el vídeo Michael
Excellent!!! Covered all the bases. I
Thank you!
Great video, thanks for sharing!!
Disappointing that b2c doesn't provide something out of the box for authorisation
Note: At 18:00: Remember to also check the two checkboxes and click Configure (missing from voiceover).
I followed your video, it helped to setup my blazor server application. Although when i tried to find access token nothing worked out so far. Can you please help me to figure out how to do that if you already know about it?
@adefwebserver
2 ай бұрын
The only thing I can offer is to download the code form this article (you have to create an account, go to the download page, and select the download titled "Creating A Blazor Server Azure B2C App (Updated to .NET 8)") and compare it to your own: blazorhelpwebsite.com/ViewBlogPost/55
@niteshsetin
2 ай бұрын
@@adefwebserver sure , I will give it a try
Hello, in the log in pop up I get this message. Please help: We're unable to complete your request 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. I set the good redirect uri but doesn't work
@adefwebserver
Жыл бұрын
The address that the user is coming from, from your application, must be properly registered in the Azure App Service Registration. See this link for more help: blazorhelpwebsite.com/ViewBlogPost/55
At 10:54, you don't select if it is a Web App or a SPA and what Redirect URI must be used ??
@adefwebserver
2 жыл бұрын
You don't select anything else at that point. Later, for Blazor Server, you will select Web (For Blazor WebAssembly you will select SPA). See All screen shots for Blazor Server here: blazorhelpwebsite.com/ViewBlogPost/55 For Blazor WebAssembly here: blazorhelpwebsite.com/ViewBlogPost/57
@Duelweb
2 жыл бұрын
@@adefwebserver Thanks so much for your quick response, much appreciated 👍
Great explanation, how about the source code?
@adefwebserver
23 күн бұрын
The code is here: blazorhelpwebsite.com/ViewBlogPost/55
Really wish you didn't approach it from the 'most users are going to use an external identity provider'. Also, it's a little disappointing to get 30 minutes into a tutorial video to be told that "Again, their help docs will walk you through the steps..." making it pointless to even be here watching the video in many cases.
@adefwebserver
Жыл бұрын
If you are not going to need an external identity provider, you may want to use Azure Active Directory rather than Azure B2C. I reefer viewers to the help docs for instructions on specific providers because covering the implementation of a single provider could take 30+ minutes and would be of no use to a viewer who did not plan to implement that provider. What I cover in this video applies to all providers.
Thanks @adefwebserver. I would like to know how we can manage users for different companies. For instance how to create a company entry and assign it its users.
@adefwebserver
Жыл бұрын
I don't have any published examples; however, I have done this for clients and the assignment of a user to a Client or Organization is managed in the database, not in Azure B2C. Making calls to the Azure B2C API is programmatically time consuming and will negatively affect application performance.
@abdouldia1605
Жыл бұрын
@@adefwebserver Thanks for your feedback.