I created a Server side Blazor application using Windows authentication. And it created the following file.
LoginDisplay.razor
<AuthorizeView>
Hello, @context.User.Identity.Name!
</AuthorizeView>
However, it shows "DOMAIN\username". Is it a way to show the user first name?
I tried to print all the claim types.
@foreach(var c in context.User.Claims)
{
<p>@c.Value @c.Type</p>
}
However, there is only one type with name in it. (with value of DOMAIN\username)
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name