Java – running Google App Engine applications on multiple client domains
I want our customers to integrate our Google App Engine Application into their domain For example, suppose a customer owns the domain name coolcustomer COM and hope to be in service coolcustomer. Com
This article discusses how to set up multi tenancy internally, but does not mention how to associate the client domain with the application
Ideally, I want to allow customers to associate subdomains as self - service Of course, this will lead to the problem of verifying whether the customer has the right to add a subdomain to the domain name
What is the best way to achieve this goal?
Solution
Customers will add your application as a service through their Google Apps control panel Some details are summarized as here
To handle multi - tenancy, you may want to use the server hostname From the host name, you will be able to obtain the domain name for the namespace
You must process the authentication domain to be a valid customer in your application I may ask them to register and then provide instructions for setting up Google Apps maps
If you want to allow them to log in with a Google Apps account bound to their domain name, you need to use openid (joint login)