Here are some typical usage scenario of IdentityPrincipal in ASP.NET. Simple IsInRole calls (checks for a status claim with a value of 'Gold'): HttpContext .Current.User.IsInRole( "Gold" ); Retrieving the OrderHistory claim: IdentityPrincipal ip = IdentityPrincipal .Current; Claim orderHistory = ip.ClaimSets.FindClaim( Constants .OrderHistoryClaimType, Constants .ApplicationIssuerIdentityClaim); var orders = orderHistory.Get< List < OrderDetail >>(); ..or some authorization code from
Read More...