Azure AD - User name null

I'm testing Radzen for an application that uses Azure AD authentication. It's authenticating successfully, but the property for the user's name (Security.User.Name) appears to be null. The name is populated in Azure AD. Any idea why?


Hi @eleightondick,

Are you using .NET 6? It seems the claim name has changed. Try the following:

  1. Add the SecurityService.cs file to Radzen's code generation ignore list.
  2. Change var name = Principal?.FindFirstValue("name"); to var name = Principal?.FindFirstValue(ClaimTypes.Name);
  3. Run the application

Perfect! That fixed the problem. Thank you for the quick response!


We have addressed that issue with today's release. It will now do this out of the box.