Google Apps(适用于企业)ASP.NET Intranet 站点的 OpenID 登录

发布于 2024-10-04 22:51:49 字数 281 浏览 0 评论 0原文

我的公司使用 Google Apps 作为我们的电子邮件/商业应用程序提供商。每个员工在这里都有一个帐户。

我正在考虑创建一个 ASP.NET Web 应用程序,允许用户登录(使用他们的 Google Apps 帐户),然后完成某些事情(第一个目标:保留员工技能的当前记录)。

在开始之前,我想了解使用 Google Apps 的 OpenID 登录系统是否比标准方式更困难,或者我是否需要注意任何陷阱。

我们有一个域,唯一的要求是用户拥有一个存在的开放帐户。

预先感谢您对此的想法!

My company uses Google Apps for our e-mail/business app provider. Every employee has an account here.

I'm looking into creating an asp.net web app that would allow users to sign-in (using their Google Apps account) and then accomplish certain things (first goal: keep a current record of the employee's skillset).

Before I get started, I wanted to find out if an OpenID login system using Google Apps is any more difficult than doing it the standard way, or if I need to be aware of any pitfalls.

We have one domain, and the only requirement would be that the user has an open account that exists.

Thanks in advance for your thoughts on this!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

提笔落墨 2024-10-11 22:51:49

我为您准备了一个月前演讲中的幻灯片:Google Apps 帐户作为 OpenID

http://www.slideshare.net/timdream/google-apps-account-as-openid

基本上有两种方法可以做到这一点。

  1. 按照 Google 文档的说明,修补您的 ASP.net OpenID 库,以接受无法从所声明的 URL 中真正发现的 Google Apps OpenID。
  2. 在声明的网址(您网站上的 /openid?id=XXXX)上安装一组发现信息,以使您的 Google Apps OpenID 行为与当前 OpenID 的行为相同。

无论哪种方式,完成后用户都可以使用以下 URL 登录您的 ASP.net 应用:

https://www.google.com/accounts/o8/site-xrds?hd=[yourappsdomain]

I have slides for you from a talk I gave a month ago: Google Apps Account As OpenID

http://www.slideshare.net/timdream/google-apps-account-as-openid

Basically there are two ways of doing this.

  1. Follow the Google documentation, patch your ASP.net OpenID library to accept Google Apps OpenID that is not really discoverable from the claimed URL.
  2. Install a set of discovery information on the claimed URL (/openid?id=XXXX on your website) to make your Google Apps OpenID behaviors the same way present OpenIDs do.

Either way, after completion user will be able to login to your ASP.net app with following URL:

https://www.google.com/accounts/o8/site-xrds?hd=[yourappsdomain]

︶ ̄淡然 2024-10-11 22:51:49

我对这个问题的解决方案是使用 DotNetOpenAuth 库——我不知道最新版本有 Google Apps 支持。

强烈推荐该产品 - 您可以在此处找到它。

我修改了其中一个示例文件,很快就启动并运行了。

感谢所有回答的人!

My solution to this issue was to use the DotNetOpenAuth library -- I was unaware that the latest version has Google Apps support.

Highly recommend the product -- you can find it here.

I modified one of the example files and was up and running in no time.

Thanks to all who answered!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文