diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-19 18:27:21 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-03-20 15:38:23 -0700 |
commit | 61372f7466e47be789ac3ab766ced4be8ae9d392 (patch) | |
tree | 305f9a60b0fbe57f33cf3932002b7518c241eed2 | |
parent | efbd27e75ab9b91cbc56c146cbb291b1ab190cbf (diff) | |
download | DotNetOpenAuth-61372f7466e47be789ac3ab766ced4be8ae9d392.zip DotNetOpenAuth-61372f7466e47be789ac3ab766ced4be8ae9d392.tar.gz DotNetOpenAuth-61372f7466e47be789ac3ab766ced4be8ae9d392.tar.bz2 |
Enhanced sample OP's home page to display username and claimed identifier.
-rw-r--r-- | samples/OpenIdProviderWebForms/Default.aspx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/samples/OpenIdProviderWebForms/Default.aspx b/samples/OpenIdProviderWebForms/Default.aspx index a0cb02a..5f6ccbd 100644 --- a/samples/OpenIdProviderWebForms/Default.aspx +++ b/samples/OpenIdProviderWebForms/Default.aspx @@ -32,20 +32,20 @@ <asp:LoginView runat="server" ID="loginView"> <LoggedInTemplate> <asp:Panel runat="server" DefaultButton="sendAssertionButton"> - Since you're logged in, try sending an unsolicited assertion to an OpenID 2.0 relying - party site. Just type in the URL to the site's home page. This could be the sample - relying party web site. - <br /> - <asp:TextBox runat="server" ID="relyingPartySite" Columns="40" /> - <asp:Button runat="server" ID="sendAssertionButton" Text="Send assertion" OnClick="sendAssertionButton_Click" /> - <asp:RequiredFieldValidator runat="server" ControlToValidate="relyingPartySite" Text="Specify relying party site first" /> - <br /> - An unsolicited assertion is a way to log in to a relying party site directly from - your OpenID Provider. - <p> - <asp:Label runat="server" EnableViewState="false" Visible="false" ID="errorLabel" - ForeColor="Red" /> - </p> + <p>You're logged in as <b><%= HttpUtility.HtmlEncode(User.Identity.Name) %></b> </p> + <p>Your claimed identifier is <b><%= HttpUtility.HtmlEncode(Util.BuildIdentityUrl()) %></b> </p> + <p>Since you're logged in, try sending an unsolicited assertion to an OpenID 2.0 relying + party site. Just type in the URL to the site's home page. This could be the sample + relying party web site. </p> + <div> + <asp:TextBox runat="server" ID="relyingPartySite" Columns="40" /> + <asp:Button runat="server" ID="sendAssertionButton" Text="Send assertion" OnClick="sendAssertionButton_Click" /> + <asp:RequiredFieldValidator runat="server" ControlToValidate="relyingPartySite" Text="Specify relying party site first" /> + </div> + <p>An unsolicited assertion is a way to log in to a relying party site directly from + your OpenID Provider. </p> + <p><asp:Label runat="server" EnableViewState="false" Visible="false" ID="errorLabel" + ForeColor="Red" /> </p> </asp:Panel> </LoggedInTemplate> </asp:LoginView> |