summaryrefslogtreecommitdiffstats
path: root/projecttemplates/MvcRelyingParty/Views/Auth/LogOnContent.ascx
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-03-13 17:20:24 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-03-13 17:20:24 -0800
commiteff9b899606f4797b51a6e26b7fd3cf87bb57d15 (patch)
tree82327b29b2b3fd114eb21e723c76193e139a99f2 /projecttemplates/MvcRelyingParty/Views/Auth/LogOnContent.ascx
parentd197a28a898228296600c8b87b4f37301004c195 (diff)
parent514eb596a424c5ff29675053731b8ec550382cda (diff)
downloadDotNetOpenAuth-eff9b899606f4797b51a6e26b7fd3cf87bb57d15.zip
DotNetOpenAuth-eff9b899606f4797b51a6e26b7fd3cf87bb57d15.tar.gz
DotNetOpenAuth-eff9b899606f4797b51a6e26b7fd3cf87bb57d15.tar.bz2
MVC RP project template now has the AJAX OpenID Selector.
Merge branch 'MVCselector' into v3.4
Diffstat (limited to 'projecttemplates/MvcRelyingParty/Views/Auth/LogOnContent.ascx')
-rw-r--r--projecttemplates/MvcRelyingParty/Views/Auth/LogOnContent.ascx29
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>
+<% } %>