在多个客户域上运行 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
客户将通过其 Google Apps 控制面板将您的应用程序添加为服务。 此处概述了一些详细信息。
要处理多租户,您可能需要使用服务器主机名。从主机名中,您将能够获取用于您的命名空间的域名。
您必须验证该域是否是您应用程序中的有效客户。我可能会让他们注册,然后提供设置 Google Apps 映射的说明。
如果您希望允许他们使用与其域绑定的 Google Apps 帐户登录,您需要使用 OpenID(联合登录)。
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.
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.
If you want to allow them to login using Google Apps accounts tied to their domain you'll need to use OpenID (federated login).