是否有一个 python openid apps-discovery 库可以将 appengine 应用程序放入应用程序市场

发布于 2024-08-24 12:23:08 字数 652 浏览 3 评论 0原文

我正在寻找有关如何将 google appengine 应用程序安装到新平台上的信息 宣布推出谷歌应用程序市场。

页面位于 http://code.google.com/googleapps/marketplace/sso.html 没有 python openid apps-discovery 库,这似乎 成为绊脚石。

有人将 appengine 应用程序移植到市场吗?或者 知道 python openid apps-discovery 库的存在吗? 或者有这方面的时间表吗?

更新:请参阅评论回复:标准 python openid 库与库 支持“应用程序发现”

更新:显然目前不可能,但很快就会看到 http://www.google. com/support/forum/p/apps-apis/thread?tid=52e36f012c2436c3&hl=en

I'm looking for info on howto get a google appengine app onto the newly
announced google apps marketplace.

The page at
http://code.google.com/googleapps/marketplace/sso.html
does not have a python openid apps-discovery library which seems
to be the stumbling block.

Has anyone ported an appengine app to the marketplace? or
know of the existence of a python openid apps-discovery library?
or have a timeline on this?

updated: please see comment re: standard python openid library vs library that
supports "apps-discovery"

updated: apparently it is not currently possible, however it will be soon see
http://www.google.com/support/forum/p/apps-apis/thread?tid=52e36f012c2436c3&hl=en

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

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

发布评论

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

评论(2

反话 2024-08-31 12:23:08

我在 Google Apps Login in django 中回答了几乎相同的问题。一探究竟。

编辑:

实际上,您的问题可以分为两个相关的问题。

  1. 如何为 Google Marketplace 构建应用程序?
  2. 如何使用 Google Apps 帐户进行身份验证以登录您的应用程序?

您实际上不必使用 Google Apps 进行身份验证。但由于您的用户已经拥有 Google Apps 帐户,因此最好让用户使用其现有帐户登录,而不是从头开始构建您自己的用户管理模块。

对于第一个问题,当您在 Google Marketplace 上注册应用程序时,您需要提供登录 URL。它采用 http://yourdomain.com/auth/domain.com 格式。 domain.com 部分是选择安装您的应用程序的组织的域名。当一个组织安装您的应用程序时,他们将使用该登录 URL 作为入口点。由您的应用程序决定如何处理请求。通常,您将用户重定向到登录页面。由于您希望用户使用其 Google Apps 帐户登录,因此您可以生成登录请求并将用户重定向到 Google 的服务器。这部分与第二个问题相关。

对于第二个问题,您可以通过实施 Google 的 AuthSub 或 OpenID 身份验证机制,让用户使用其 Google Apps 帐户登录您的应用程序。当您要求 openid 库时,我猜您选择了 openid。如果你想使用openid进行身份验证,你应该注意Google的自定义发现方法,该方法不在标准库中。查看我在另一个问题中的回答以获取更多信息。

我刚刚将 python-openid-2.2.4 的修补版本上传到 github。这是链接: http://github.com/adieu/python-openid/

顺便说一句:您实际上不必要求用户将某些文件放在他们的服务器上。但如果他们这样做,他们就可以更改默认的 openid 身份验证后端服务器。

也许我应该写一篇关于这个问题的博客文章:)

I answered an almost the same question at Google apps login in django. Check it out.

Edited:

Actually, your question can be separated into two related questions.

  1. How to build an application for Google Marketplace?
  2. How to authenticate with Google Apps Account to login into your application?

You don't really have to authenticate with Google Apps. But since your user already have an Google Apps Account, it's nice to let the user login with their existing account instead of building your own user management module from scratch.

For the first question, when you register your application on Google Marketplace, you provide your login url. It's in http://yourdomain.com/auth/domain.com kind of format. The domain.com part is the domain name of the organization who choose to install your application. When one organization installed your application, they will use that login url as the entrance point. It is your application determines what to do with the request. Typically, you redirect the user to the login page. Since you want the user to login with his Google Apps Account, you could generate the login request and redirect the user to Google's server. And that part is related to the second question.

For the second question, you could let the user to login into your application with their Google Apps Account by implementing Google's AuthSub or OpenID authentication mechanism. As you're asking for the openid library, I guess you chose openid. If you want to use openid to authenticate, you should pay your attention to Google's custom discovery method which is not in the standard library. Check my answer in the other question I answered for more information.

I just uploaded my patched version of python-openid-2.2.4 to github. Here is the link: http://github.com/adieu/python-openid/

BTW: you don't really have to ask the user to put some file on their server. But if they do so, they could change the default openid authentication backend server.

Maybe I should write a blog post about this problem :)

话少心凉 2024-08-31 12:23:08

python-openid 库似乎支持发现。

The python-openid library appears to support discovery.

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