Search
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 12:12 PM by DominickBaier, version 4
Updating...
© 2006-2012 Microsoft | Get Help | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2012.1.11.18365