Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# .net JwtSecurityTokenHandler jwttoken claims to object

var identity = HttpContext.User.Identity as ClaimsIdentity;
if (identity != null)
{
    IEnumerable<Claim> claims = identity.Claims; 
    // or
    identity.FindFirst("ClaimName").Value;

}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #JwtSecurityTokenHandler #jwttoken #claims #object
ADD COMMENT
Topic
Name
3+6 =