How to Secure a Blazor WebAssembly App Using Azure Active Directory

preview_player
Показать описание
In this video, I'll guide you through the step-by-step process of securing your Blazor WebAssembly app with Azure Active Directory.

Learn more :

Where you can find me:

#Blazor #WebAssembly #Azure #ActiveDirectory #Security #Tutorial #HowTo #StepByStep #Guide #Authentication #Authorization
Рекомендации по теме
Комментарии
Автор

Could you do another video on passing the ad credentials to an API having it's own app registration?

MarownIOM
Автор

Very good video.
Can you please create a tutorial of using Azure Active Directory for both Blazor serve and WebAssembly in .NET 8?

FearGod
Автор

This is great for .NET 7. Would even better if it covered .NET 8

itaylorm
Автор

Thank you, this is a very good explanation of exactly what i need.

txguwbz
Автор

Everything is working besides on startup the app does not navigate to the microsoft sign in page. It just stays on the home page and disallows access due to not being authorized. Do you know what could be causing this? Thanks

Chungus
Автор

🙂it was really nice to know. Thank you for this valuable teach

aminsaadati
Автор

This was great! But can someone advise me here, im not too sure where to start searching this but I want to achieve this workflow:

I have a blazor web assembly app

I have an azure functions app

user logs into web assembly app, and then with that same token, makes authenticated calls to the azure functions app. How would i set up this workflow? where would i start to look?

stavvers
Автор

I am getting when registering the policy


Warning CS8604 Possible null reference argument for parameter 'value' in 'bool string.Contains(string value)'

eliewithlove
Автор

I think that there have been changes to how Active Directory makes group claims available, is there anyone who's able to get the superusers claim in this case to work? The option for Manage > Token Confirguration is no longer even available in the App Registration within Azure AD B2C. I've gone through the debugger and confirmed that the line 23 in Program.cs does not actually ever trigger the c.Value.Contains(builder.Configuration["groups:superusersid"]);, as c.Value will no longer include the group claim.

Anyone have a fix?

csunstudent
Автор

Can you make a video of creating in MSAL Authenticated Blazor wasm Application(without any super user). I was just trying to add some details of the user from my Db into the AuthendicationState. So I'm planning to add that after getting the token email everything from Azure Add & later made a request to my api to get the data to Add in Authendication State. please help me .

bqjdudw
Автор

Thank you for the video, it works for me. I have a question. How I can add an audience using AddMsalAuthentication? With AddOidcAuthentication I can set my API as audience but I cannot find this option in case you shown.

pyrekg
Автор

With exactly this configuration, how can i get the access token?

joelrcc
Автор

So, is the Active Directory service free? Is it within the scope of free 12 months? (The name of the new service is Entra ID.)

cenkyenikoylu
Автор

First let me say Great video.
My project is a Blazor Server application, can i use this method on that?
And if you could tell me how to show the user email also in the mainlayout file next to name, that woild be great.

ctbtspk
Автор

Is there a way to do this with a custom login page and domain instead of Microsofts page?

jvdub
Автор

Are you sure what you are doing is correct? Since the whole wasm application runs in de browser, you cannot assume that your authorizedRoute cannot be bypassed. Authorization checks should be done server side. I’m new to blazor so maybe that’s what is happing but you also didn’t checked “aspnet hosted” at project creation, so I fail to see how this can work as it’s a static spa app

mustafasabur