Vincent Leung .NET Tech Clips

The latest tech clips from the .NET community

Secure Your ASP.NET Apps And WCF Services With Windows CardSpace — MSDN Magazine, April 2007

 

By Michèle Leroux Bustamante

Contents

Windows CardSpace and Information Cards
Personal Cards
Managed Cards
Browsers and Identity Selectors
Object and XHTML Parameters
Processing the Security Token
Associating Cards with an Account
Integrating Windows CardSpace with WCF
Conclusion

Via Identity: Secure Your ASP.NET Apps And WCF Services With Windows CardSpace — MSDN Magazine, April 2007

October 19, 2007 Posted by | CardSpace | Leave a Comment

Using CardSpace without using WCF or Browser

Getting CardSpace Tokens Programmatically

The wrapper allows you to  basically pass in the required details (issuer and target URI, the target identity as well as required/optional claims) and get back the encrypted XML token. 

This code snippet shows how to use the wrapper to get a token for a self issued card:

IdentitySelector selector = new IdentitySelector();

selector.IssuerUri = 
new Uri("http://schemas.xmlsoap.org/ws/2005/05/identity/issuer/self"); selector.TargetUri = new Uri("http://relyingParty"); selector.SetTargetCertificate("RelyingParty", X509FindType.FindBySubjectName, StoreLocation.CurrentUser, StoreName.AddressBook); selector.RequiredClaims.Add(ClaimTypes.GivenName); selector.RequiredClaims.Add(ClaimTypes.Surname); selector.RequiredClaims.Add(ClaimTypes.Email); string tokenString = selector.GetTokenString();

From this point on it is up to you to use this token in whatever way you want.

It is as easy a shipping a string to your relying party.

Download here

Via www.leastprivilege.com – Getting CardSpace Tokens Programmatically

October 18, 2007 Posted by | CardSpace | Leave a Comment

Using Windows CardSpace with WebService and Non-Browser Applications

 

Vibro.NET : Using Windows CardSpace for securing a WPF smartclient, in WCF & token caching sauce

Securing a Sidebar Gadget with Windows CardSpace and WCF

And his book:

Understanding Windows CardSpace: An Introduction to the Concepts and Challenges of Digital Identities

by Vittorio Bertocci; Garrett Serack; Caleb Baker

October 18, 2007 Posted by | CardSpace | Leave a Comment

WCF, WF and CardSpace Orcas Beta 2 Samples

 

Windows Communication Foundation (WCF), Windows Workflow Foundation (WF) and Windows CardSpace Samples for Orcas Beta 2 Download

Download details: WCF, WF and CardSpace Orcas Beta 2 Samples

August 23, 2007 Posted by | CardSpace, VS2008, WCF, WF, WPF | Leave a Comment

   

Follow

Get every new post delivered to your Inbox.