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?
Thanks,
Ed
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?
Thanks,
Ed
Hi @eleightondick,
Are you using .NET 6? It seems the claim name has changed. Try the following:
var name = Principal?.FindFirstValue("name");
to var name = Principal?.FindFirstValue(ClaimTypes.Name);
Perfect! That fixed the problem. Thank you for the quick response!
Ed
We have addressed that issue with today's release. It will now do this out of the box.