There are lots of postings about how to use ClientLogin to
programmatically authenticate with a Google App Engine app. For the
account type, they all recommend using HOSTED_OR_GOOGLE. This is
wrong, and I will explain why.

There are two kinds of accounts in the Google world. The ones you
create for GMail, etc are "Google" accounts. The ones you create for
Apps for Domains are "Hosted" accounts. You can use a Hosted Account
email to make a Google Account, thus creating an email address that is
associated with both kinds of accounts.

Your Google App Engine app can be configured to work with (1) Google
Accounts or (2) Hosted Accounts for a particular domain.

Assume that we are developing an app for Google Accounts. A user
enters in an email address that is associated with a Google Account
and a Hosted Account. Google will use their Google Account for the
login. This all works fine.

Now, if we use ClientLogin with this same email address and use
HOSTED_OR_GOOGLE for the account type, login will be successful, but
it will use the Hosted Account, since the Hosted Account takes
precedence. As I mentioned above, you cannot use a Hosted Account for
an app that expects a Google Account. So the authentication will not
work.

So, when using ClientLogin to authenticate with a Google App Engine
app, you need to use GOOGLE for the account type if the app is for
Google Accounts, or HOSTED for the account type if the app is for a
domain.

..tony..

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to