Blazor Windows Authentication

Can the Windows authentication work with active directory domain user?
The user logged on windows and will automatically logged in the blazor app with all the authorizations atributed without the need of a login page?

Hi @Rija,

Frankly speaking we haven't tested this scenario. You can try it though - should be easy to test.

Other than that - yes, the user is automatically logged with their Windows credentials and there is no login page.

Trying to show the current user object UserName property inside a label ...The app won't start with this error message. The windows logged in user is a domain user.

dotnet: Pages\Client.razor(18,44): error CS1061: 'ApplicationUser' does not contain a definition for 'UserName' and no accessible extension method 'UserName' accepting a first argument of type 'ApplicationUser' could be found (are you missing a using directive or an assembly reference?) [C:\radzen\server\Actived.csproj]

And when using "Active Directory" security, it seems to bring me to my previous post bug

That's because the ApplicationUser class generated for Windows security does not have a UserName property. It has a Name property instead.