
説明/参照:
Explanation:
例:public class MyIdentityClaim
{
プライベート文字列_identityProvider;
プライベート文字列_identityValue;
public const string ACSProviderClaim = "http://schemas.microsoft.com/accesscontrolservice/2010/07/ claims / identityprovider"; public MyIdentityClaim(IClaimsIdentity identity)
{
if(identity!= null)
{
foreach(アイデンティティのvarクレーム)クレーム
{
if(claim.ClaimType == ClaimTypes.NameIdentifier)
{
_identityValue = claim.Value;
}
if(claim.ClaimType == ACSProviderClaim)
{
_identityProvider = claim.Value;
}
}
}
}
リファレンス:Azure Acsプラスasp.net MVCメンバーシップ
https://garvincasimir.wordpress.com/2011/08/06/azure-acs-plus-asp-net-mvc-memberships/