Aspectacular.DemandClaimsAttribute.GetAuthorizedClaims C# (CSharp) 메소드

GetAuthorizedClaims() 보호된 메소드

protected GetAuthorizedClaims ( ) : IEnumerable
리턴 IEnumerable
        protected override IEnumerable<string> GetAuthorizedClaims()
        {
            if(this.ClaimsIdentity == null)
                return null;

            IEnumerable<string> authorizedClaims = this.ClaimsIdentity.Claims.Where(claim => claim.Type == this.ClaimsIdentity.RoleClaimType).Select(claim => claim.Value);
            return authorizedClaims;
        }