login across different subdomains

136 views
Skip to first unread message

roberto.cr

unread,
Apr 9, 2011, 4:47:36 AM4/9/11
to Google App Engine
The login isn't working across different subdomains

My app needs to accept any user input for the subdomain (I've already
set the subdomain wildcard in google apps and in my dns settings, it's
working as desired)
pizza.mydomain.com
coke.mydomain.com
But when the user logs in pizza subdomain, he doesn't appear logged in
coke subdomain. I need any login to work across any subdomain.

users.auth_domain clearly states "This method is internal and should
not be used by client applications."

I simply don't know where to start. Is this something I can control or
not?

roberto.cr

unread,
Apr 9, 2011, 4:31:59 PM4/9/11
to Google App Engine
Does this happen to *everyone* ??? How come there's not much info
about it on this discussion group ?
How are people solving this ?

Robert Kluin

unread,
Apr 10, 2011, 12:26:27 AM4/10/11
to google-a...@googlegroups.com
The login is controlled with a cookie. The cookie's domain matches
the subdomain they authenticated on. I'm sure a google for "cookie
domain" would return some information on the topic.

http://en.wikipedia.org/wiki/HTTP_cookie#Domain_and_Path


One solution: don't use separate subdomains.

Robert

> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>
>

roberto.cr

unread,
Apr 10, 2011, 3:10:14 AM4/10/11
to Google App Engine
this is not a solution, this is changing the problem :P

no surprise here, app engine is again mixing great tools with shameful
problems
I've just started my app engine experience and I've already faced many
stupid restrictions: no domain-wide login, no naked domain support,
google's domain redirection ignores full path...
I was prepared for all the reasonable restrictions... but some app
engine stuff just feels weird
Reply all
Reply to author
Forward
0 new messages