【发布时间】:2010-08-02 11:45:06
【问题描述】:
我正在尝试使用 Google 帐户以及 ASP.NET MVC 2 框架和 DotNetOpenAuth 库实现 openId 登录。
以下代码用于渲染登录按钮:
<% using (Html.BeginForm("LogOnPostAssertion", "Authentication", FormMethod.Post, new { target = "_top" }))
{ %>
新的 SelectorProviderButton("https://www.google.com/accounts/o8/id", AppHelper.ImageUrl("login/google.gif")),
新的 SelectorOpenIdButton(Url.Content("~/Content/google.gif")) }) %>
标签: ajax asp.net-mvc-2 dotnetopenauth