<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 

<%@ OutputCache Location="None" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 

<html > 


<head> 

<meta http-equiv="Content-Language" content="en-us"> 

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 

<title>Claims-aware Sample Application</title> 

<style> 

<!-- 

.pagetitle { font-family: Verdana; font-size: 18pt; font-weight: bold;} 

.propertyTable td { border: 1px solid; padding: 0px 4px 0px 4px} 

.propertyTable th { border: 1px solid; padding: 0px 4px 0px 4px; font-weight: bold; background-color: #cccccc ; text-align: left } 

.propertyTable { border-collapse: collapse;} 

td.l{ width: 200px } 

tr.s{ background-color: #eeeeee } 

.banner { margin-bottom: 18px } 

.propertyHead { margin-top: 18px; font-size: 12pt; font-family: Arial; font-weight: bold; margin-top: 18} 

.abbrev { color: #0066FF; font-style: italic } 

--> 

</style> 

</head> 


<body> 

<form ID="Form1" runat=server> 


<div class=banner> 

<div class=pagetitle>SSO Sample</div> 

[ <asp:HyperLink ID=SignOutUrl runat=server>Sign Out</asp:HyperLink> | <a href="<%=Context.Request.Url.GetLeftPart(UriPartial.Path)%>">Refresh without viewstate data</a>] 

</div> 


<div class=propertyHead>Page Information</div> 

<div style="padding-left: 10px; padding-top: 10px"> 

<asp:Table runat=server ID=PageTable CssClass=propertyTable> 

<asp:TableHeaderRow> 

<asp:TableHeaderCell>Name</asp:TableHeaderCell> 

<asp:TableHeaderCell>Value</asp:TableHeaderCell> 

<asp:TableHeaderCell>Type</asp:TableHeaderCell> 

</asp:TableHeaderRow> 

</asp:Table> 

</div> 


<div class=propertyHead>User.Identity</div> 

<div style="padding-left: 10px; padding-top: 10px"> 

<asp:Table CssClass="propertyTable" ID=IdentityTable runat=server> 

<asp:TableHeaderRow> 

<asp:TableHeaderCell>Name</asp:TableHeaderCell> 

<asp:TableHeaderCell>Value</asp:TableHeaderCell> 

<asp:TableHeaderCell>Type</asp:TableHeaderCell> 

</asp:TableHeaderRow> 

</asp:Table> 

</div> 


<div class=propertyHead>(IIdentity)User.Identity</div> 

<div style="padding-left: 10px; padding-top: 10px"> 

<asp:Table CssClass="propertyTable" ID=BaseIdentityTable runat=server> 

<asp:TableHeaderRow> 

<asp:TableHeaderCell>Name</asp:TableHeaderCell> 

<asp:TableHeaderCell>Value</asp:TableHeaderCell> 

<asp:TableHeaderCell>Type</asp:TableHeaderCell> 

</asp:TableHeaderRow> 

</asp:Table> 

</div> 


<div class=propertyHead>(SingleSignOnIdentity)User.Identity</div> 

<div style="padding-left: 10px; padding-top: 10px"> 

<asp:Table CssClass="propertyTable" ID=SSOIdentityTable runat=server> 

<asp:TableHeaderRow> 

<asp:TableHeaderCell>Name</asp:TableHeaderCell> 

<asp:TableHeaderCell>Value</asp:TableHeaderCell> 

<asp:TableHeaderCell>Type</asp:TableHeaderCell> 

</asp:TableHeaderRow> 

</asp:Table> 

</div> 


<div class=propertyHead>SingleSignOnIdentity.SecurityPropertyCollection</div> 

<div style="padding-left: 10px; padding-top: 10px"> 

<asp:Table CssClass="propertyTable" ID=SecurityPropertyTable runat=server> 

<asp:TableHeaderRow> 

<asp:TableHeaderCell>Uri</asp:TableHeaderCell> 

<asp:TableHeaderCell>Claim Type</asp:TableHeaderCell> 

<asp:TableHeaderCell>Claim Value</asp:TableHeaderCell> 

</asp:TableHeaderRow> 

</asp:Table> 

</div> 


<div class=propertyHead>(IPrincipal)User.IsInRole(...)</div> 

<div style="padding-left: 10px; padding-top: 10px"> 

<asp:Table CssClass="propertyTable" ID=RolesTable runat=server> 

</asp:Table> 


<div style="padding-top: 10px"> 

<table> 

<tr><td>Roles to check (semicolon separated):</td></tr> 

<tr><td><asp:TextBox ID=Roles Columns=55 runat=server/></td><td align=right><asp:Button UseSubmitBehavior=true ID=GetRoles runat=server Text="Check Roles" OnClick="GoGetRoles"/></td></tr> 

</table> 

</div> 


</div> 

</form> 

</body> 


</html>
