diff options
Diffstat (limited to 'projecttemplates/MvcRelyingParty/Views/Auth/LogOnContent.ascx')
-rw-r--r-- | projecttemplates/MvcRelyingParty/Views/Auth/LogOnContent.ascx | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/projecttemplates/MvcRelyingParty/Views/Auth/LogOnContent.ascx b/projecttemplates/MvcRelyingParty/Views/Auth/LogOnContent.ascx new file mode 100644 index 0000000..eb8dc16 --- /dev/null +++ b/projecttemplates/MvcRelyingParty/Views/Auth/LogOnContent.ascx @@ -0,0 +1,29 @@ +<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> +<%@ Import Namespace="DotNetOpenAuth.Mvc" %> +<%@ Import Namespace="DotNetOpenAuth.OpenId.RelyingParty" %> +<p>Login using an account you already use. </p> +<%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %> + +<% using (Html.BeginForm("LogOnPostAssertion", "Auth", FormMethod.Post, new { target = "_top" })) { %> +<%= Html.AntiForgeryToken() %> +<%= Html.Hidden("ReturnUrl", Request.QueryString["ReturnUrl"], new { id = "ReturnUrl" }) %> +<%= Html.Hidden("openid_openidAuthData") %> +<div> +<%= Html.OpenIdSelector(this.Page, new SelectorButton[] { + new SelectorProviderButton("https://me.yahoo.com/", Url.Content("~/Content/images/yahoo.gif")), + new SelectorProviderButton("https://www.google.com/accounts/o8/id", Url.Content("~/Content/images/google.gif")), + new SelectorOpenIdButton(Url.Content("~/Content/images/openid.gif")), +}) %> + + <div class="helpDoc"> + <p> + If you have logged in previously, click the same button you did last time. + </p> + <p> + If you don't have an account with any of these services, just pick Google. They'll + help you set up an account. + </p> + </div> + +</div> +<% } %> |