Project Description
ASP.NET WebControl to easily integrate Information Cards into ASP.NET applications

see here for documentation: http://www.leastprivilege.com/IdentityModel/InfoCardSelector/documentation.aspx

This control makes adding support for Information Cards as easy as:

<lp:InfoCardSelector runat="server" ID="_selector" AutoPostback="true" 
    AutoDecryptToken="true" OnTokenSubmitted="_selector_TokenSubmitted">

    <lp:ClaimType Name="Email" />
    <lp:ClaimType Name="Surname" />
    <lp:ClaimType Name="GivenName" />
    <lp:ClaimType Name="PPID" />

</lp:InfoCardSelector>


The event handler uses this simple pattern:

protected void _selector_TokenSubmitted(object sender, TokenSubmittedEventArgs e)
{
    if (e.Exception == null)
    {
        _txtEncryptedToken.Text = e.EncryptedToken;
        _txtPlainTextToken.Text = e.Token.DecryptedToken;

        Token = e.Token;
    }
    else
    {
        // error handling
    }
}

Last edited Apr 16 2008 at 11:12 AM by DominickBaier, version 4

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Version 2009.6.1.15196