I am able to resolve it, but not in a manner that I'm extremely satisfied with.
I've replaced the following
.AddMicrosoftAccount(options =>
{
options.ClientId = aadConfig.ClientId;
options.ClientSecret = aadConfig.ClientSecret;
options.AuthorizationEndpoint = aadConfig.AuthorityEndpoint;
options.TokenEndpoint = aadConfig.TokenEndpoint;
})
With this, this somehow resolves it.
AddOpenIdConnect("Microsoft", options =>
{
options.Authority = aadConfig.Authority;
options.ClientId = aadConfig.ClientId;
options.ClientSecret = aadConfig.ClientSecret;
options.ResponseType = OpenIdConnectResponseType.Code;
options.SaveTokens = true;
options.GetClaimsFromUserInfoEndpoint = true;
options.MapInboundClaims = false;
options.TokenValidationParameters.NameClaimType = JwtRegisteredClaimNames.Name;
})