Have you _tried_ accessing your app via myapp.mydomain.com? When I tested that, google_apps_namespace() returns the apps domain.
I use federated login (open id), my solution to the problem is to use the domain the user requests to determine the namespace. This type of method has its pros and cons, one nice thing it lets me do is associate a regular Google Account with a namespace and let users belong to multiple namespaces and select the one they want to "log into." Robert On Mon, Jan 24, 2011 at 16:06, tobik <[email protected]> wrote: > I'm writing an application for Google Apps and I want to support > multitenancy. So I used Namespace API as described in the > documentation (using google_apps_namespace()), deployed my app and > added to my domain (using 'Add domain' in settings). But the function > namespace_manager.google_apps_namespace() returns an empty string. > What do I have to do to get it working? Do I have to use Users API to > authenticate users? Or do I have to access my app using url mapped to > my domain (like myapp.mydomain.com, not myapp.appspot.com)? But I > couldn't use Namespace API for apps in Marketplace then as apps in > Marketplace can have only one url for all domains. > > Please, is there anyone who uses Namespace API with Google Apps? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
