Simplest way to authenticate your Blazor App

preview_player
Показать описание
Cookie authentication setup example for your .net Blazor web assembly application.

Chris Sainty

#csharp #aspnetcore #blazor
Рекомендации по теме
Комментарии
Автор

Love that you work under the hood with all your authentication samples. I have a scenario where I am using a Blazor Server App and an Asp.NetCore API that I want to authenticate against. Find this to be quite tricky as the server side blazor and DOM for cookie is not as straight forward. Any ideas or tips?

jasonwerber
Автор

Hi Anton, do you know if there is any reasonable way to make Identity methods like CreateAsync etc run in transaction instead of straight away? I know there is a possibility to inherit from UserManager<T> and set AutoSaveChanges to false, but then it throws an exception when trying to update user and its roles in the same transaction. I need this so I can save User and their UserProfile (which can be different based on the user type) all at once.

matthewrossee
Автор

Hi Raw Coding, it's been a while just checking up that all is good with you. Cheers, do have a lovely one

victorchisomnwisu
Автор

Thank you for the video - Do you know a good resource for creating an app that uses OIDC (Entra ID/Azure AD) for authentication but then during that login step enriches the authenticationstateprovider with additional roles and permissions saved in a database.

We want to use the Azure AD to allow access and single sign on but in terms of our applications permissions and authorization handle this within our db related to the app. (many apps use azure ad but roles and permissions needed vary across the org).

Thanks again!

pureevil
Автор

Awesome, thanks for the video. Can you please do one on TPL dataflow? (If not done yet)

gopalt
Автор

Nice and simple explanation of the indeed, mysterious documentations :D
Is it possible to demonstrate the *proper* way that this works in a Blazor Server app w/ Identity? The main idea is to use a custom razor component as the login page and not redirect to the rather obsolete (default) cshtml pages of the Identity. (Also a hit & miss topic on the internet)

chrisargiris
Автор

nice vid, sadly i'm now blind after watching it

elgusanito
Автор

why on earth are you using white mode, my eyes :(

thedude