public static ViewClaims GetAll(ClaimsPrincipal principal)
        {
            var claims = new List <ViewClaim>(
                from c in principal.Claims
                select new ViewClaim
            {
                Type  = c.Type,
                Value = c.Value
            });

            var vc = new ViewClaims();

            vc.AddRange(claims);

            return(vc);
        }
        public IEnumerable <ViewClaim> Get()
        {
            var principal = Request.GetClaimsPrincipal();

            return(ViewClaims.GetAll(principal));
        }
Example #3
0
        public ViewClaims Get()
        {
            var principal = Request.GetClaimsPrincipal();

            return(ViewClaims.GetAll(principal));
        }