I'm trying to get a custom property in the default template of Blazor WebAssembly 3.2, but when I debug the context.User.Identity.Name at the blazor.server part it is null. I can see the user is context.User.Identity.IsAUthenticated is true, but all the other properties seem null or empty.
So to reproduce:
- Create a new Blazor WebAssembly 3.2 project
- Do the add-migration inital + database-update
- Start the blazor.server project and register a user and login
- Set a breakpoint on the Get method of the Weatherforecast.
- The context.User.Identity.Name is empty
Anyone got a guide for this, or a hint where to look. Thanks