I'm trying to login to my version simple test app using this script:
http://dalelane.co.uk/blog/?p=303
The test app just displays "Hello world" when you are logged in like
this:
http://restapitests.appspot.com/
def get(self):
user = users.get_current_user()
if user:
self.response.out.write('Hello world!')
else:
self.redirect(users.create_login_url('/'), False)
I'm testing with two different accounts. "[email protected]"
was created through Google Apps. And "[email protected]" was
created through google. If I access my app through a web browser then
I can login and see "Hello world" using either account. But if I login
via the ClientLogin, token, ACSID cookie rout then I have some
problems based on the "accountType" key that I post to ClientLogin.
If I use HOSTED_OR_GOOGLE then only my account
"[email protected]" can login and see "Hello world"
If I use GOOGLE then both accounts can login and see "Hello world"
If I use HOSTED then neither account can login
This seems really odd to me because in all the examples people seem to
be using HOSTED_OR_GOOGLE, and that's documented as the choice that
will accept all accounts. Can someone tell me why I have to use
accountType GOOGLE so that I can login with either of my accounts,
instead of using HOSTED_OR_GOOGLE?
Thanks for any help.
Jesse
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---