Welcome to Microsoft .NET Framework 3.0 Community (NetFx3)

The .NET Framework is Microsoft's managed code programming model for building applications that have visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes.

Learn More...

Cardspace Community Bloggers

Using IdentityModel: Some Samples

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...
Published Saturday, March 22, 2008 9:54 AM by www.leastprivilege.com

Comments

 

CardSpace Blogs said:

Here are some typical usage scenario of IdentityPrincipal in ASP.NET. Simple IsInRole calls (checks for

March 22, 2008 10:14 AM
Anonymous comments are disabled

Copyright © 2007 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us