DotNetOpenAuth - 对 Google Apps 使用 OpenIdButton
我是 ASP.NET 新手,我正在尝试为内部 Web 应用程序设计 OpenID/SSO 系统。 Web 应用程序非常简单,身份验证当前由具有用户名和密码的数据库进行管理。我想用 Google Apps 帐户替换数据库中存储的现有帐户。
我已经下载了最新的 DotNetOpenAuth-3.4.3.10103 包,并在 IIS 上启动并运行了 OpenIdRelyingPartyWebForms 示例。我仅使用指向开发 Google 域的 OpenIdButton 对象构建了自己的登录页面。
该按钮在 FireFox 中似乎工作正常,至少它会将我转发到 Google Apps 登录,但当我在 IE 中加载同一页面时没有任何反应。当我点击 Google 按钮时,没有任何反应,zip。对于示例中给出的 login.aspx 页面中的 Yahoo 按钮也是如此。
这是我正在使用的 .aspx 代码...
<rp:OpenIdButton runat="server" ImageUrl="http://www.google.com/accounts/google_transparent.gif" Text="Login with Google!" ID="googleLoginButton" Identifier="https://www.google.com/accounts/o8/site-xrds?hd=dev.connexcloud.com" />
I am an ASP.NET newbie and I am trying to design an OpenID/SSO system for an internal web application. The web application is pretty simple and the authentication is currently being managed by a database with usernames and passwords. I want to replace the existing accounts stored in the database with Google Apps accounts.
I have downloaded the latest DotNetOpenAuth-3.4.3.10103 package and got the OpenIdRelyingPartyWebForms sample up and running on IIS. I have built my own login page using just a OpenIdButton object that points to a development Google domain.
The button seems to work fine in FireFox, at least it is forwarding me to the Google Apps login, but nothing happens when I load the same page in IE. When I click the Google button, nothing happens, zip. The same is true for the Yahoo button in the login.aspx page given in the sample.
Here is the .aspx code I am using...
<rp:OpenIdButton runat="server" ImageUrl="http://www.google.com/accounts/google_transparent.gif" Text="Login with Google!" ID="googleLoginButton" Identifier="https://www.google.com/accounts/o8/site-xrds?hd=dev.connexcloud.com" />
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 .NET 的 Google Apps Marketplace 教程可以回答您的问题:
http://code.google .com/googleapps/marketplace/tutorial_dotnet.html
I think the Google Apps Marketplace tutorial for .NET answers your question:
http://code.google.com/googleapps/marketplace/tutorial_dotnet.html