I am using Identity Server 4 and using the following scopes, however I am unable to access the claim email.
.AddOpenIdConnect("AzureB2C", "External Users AD_B2C",
options =>
{
options.SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme;
options.Authority = appConfig.AzureB2C.Authority;
options.ClientId = appConfig.AzureB2C.ClientId;
options.ClientSecret = appConfig.AzureB2C.Secret;
options.ResponseType = OpenIdConnectResponseType.Code;
options.Scope.Add("openid");
options.Scope.Add("email");
options.Scope.Add("profile");[![enter image description here][1]][1]
The openid-configuration does mention emails as supported but I cannot get this claim either
"claims_supported": [ "name", "emails", "given_name", "idp", "family_name", "oid", "sub", "idp_access_token", "tfp", "iss", "iat", "exp", "aud", "acr", "nonce", "auth_time" ]