ASP.NET Core OpenIdConnect: Why is the ClaimsPrincipal name NULL?

added by DotNetKicks
9/20/2018 4:19:29 PM

2 Kicks, 87 Views

I'm setting up OpenIdConnect authentication for our system and came across a peculiar problem. Although I was able to log in using an external authentication server (for example a Google account) the HttpContext.User.Identity.Name would be null. But looking at the claims I could see a name claim. What was going on?