Ребят, есть идентити сервер на котором предопределены ресурсы а-ки:
return new List<IdentityResource>
{
new IdentityResources.OpenId(),
new IdentityResources.Profile(),
new IdentityResource(ExtraScopeName, new []{"emailaddress","commonname"}),
};
И так-же есть скоупы, а-ки:
AllowedScopes = new List<string>
{
IdentityServerConstants.StandardScopes.OpenId,
IdentityServerConstants.StandardScopes.Profile,
ExtraScopeName
}.Union(metadata.Resources.Select(y => y.ResourceId)).ToList(),
Но со в скоупе падает лишь коммон нейм, по какой причине емейл не падает?
В Active Directory настроен клайм таким образом :
-<auth:ClaimType xmlns:auth="
http://docs.oasis-open.org/wsfed/authorization/200706" Optional="true" Uri="
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress">
<auth:DisplayName>E-Mail Address</auth:DisplayName>
<auth:Description>The e-mail address of the user</auth:Description>
</auth:ClaimType>