在多个客户域上运行Google App Engine应用程序 [英] Running Google App Engine application on multiple customer domains

查看:166
本文介绍了在多个客户域上运行Google App Engine应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让我公司的客户将我们的Google App Engine应用程序整合到他们的域中。例如,假设一个客户拥有域 coolcustomer.com ,并且想让我们的应用在 service.coolcustomer.com

I want to allow my company’s customers to integrate our Google App Engine application into their domains. For example, let’s say one customer owns the domain coolcustomer.com and wants to make our app accessible at service.coolcustomer.com.

此文章讨论了如何在内部设置多租户,但未提及如何将客户端域与应用关联。

This article discusses how to set up multi-tenancy internally, but does not mention how to associate client domains with an app.

理想情况下,我想允许客户以自助服务的方式关联子域。这当然会带来验证客户是否有权将域名添加到域名的问题。

Ideally, I’d like to allow customers to associate a sub-domain in a self-service manner. This, of course, brings up the issue of validating that the customer has permission to add a sub-domain to a domain name.

完成此操作的最佳方法是什么?

What is the best approach to accomplish this?

推荐答案

客户将通过他们的Google Apps控制面板将您的应用程序添加为服务。 此处列出了一些详细信息。

The customer will add your application as a service via their Google Apps control panel. Some of the details are outlined here.

要处理多租户,您可能需要使用服务器主机名。从主机名中,您将能够获得域名以用于您的名称空间。

To handle multi-tenancy you will probably want to use the server host name. From the host name, you'll be able to get the domain name to use for your namespace.

您必须处理验证域是有效的客户你的应用。我可能会让他们注册,然后提供设置Google Apps映射的指示。

You'll have to handle validating the domain is a valid customer in your app. I would probably let them register, then provide instructions for setting up the Google Apps mapping.

如果您想允许他们使用与其域绑定的Google Apps帐户登录需要使用 OpenID (联合登录)。

If you want to allow them to login using Google Apps accounts tied to their domain you'll need to use OpenID (federated login).

这篇关于在多个客户域上运行Google App Engine应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆