Go to file
Shawn O. Pearce bb0ee80571 Change RPC client to only use Google Accounts for authentication
Hosted domain account (such as "@google.com" itself) don't work on the
Google App Engine service unless the user specifically creates their
own Google Account (https://www.google.com/accounts/NewAccount) with
the same email address.

When both such accounts exist we must *only* use the Google Account in
our auth request, as that is all Google App Engine will honor when we
send it the session cookie.

However, Google has internal servers that may also be running Gerrit
based applications.  In those case we must use the hosted auth login
for @google.com user accounts, as the internal servers honor only the
hosted account and not the public Google Account database.

In the future we may need to add other domains to the "HOSTED" list
if other Gerrit instances are setup on hosted domains and locked to
only those domain's user accounts, similar to how a server that is
internal to Google would be setup.  Since this is currently not a
likely occurrence I'm not worrying about making it configurable at
this juncture.

Signed-off-by: Shawn O. Pearce <sop@google.com>
2008-10-22 13:10:29 -07:00
codereview Change RPC client to only use Google Accounts for authentication 2008-10-22 13:10:29 -07:00
froofle Initial Contribution 2008-10-21 07:00:00 -07:00
subcmds Initial Contribution 2008-10-21 07:00:00 -07:00
.gitignore Initial Contribution 2008-10-21 07:00:00 -07:00
color.py Initial Contribution 2008-10-21 07:00:00 -07:00
command.py Initial Contribution 2008-10-21 07:00:00 -07:00
COPYING Initial Contribution 2008-10-21 07:00:00 -07:00
editor.py Initial Contribution 2008-10-21 07:00:00 -07:00
error.py Initial Contribution 2008-10-21 07:00:00 -07:00
gerrit_upload.py Initial Contribution 2008-10-21 07:00:00 -07:00
git_command.py Initial Contribution 2008-10-21 07:00:00 -07:00
git_config.py Initial Contribution 2008-10-21 07:00:00 -07:00
import_ext.py Initial Contribution 2008-10-21 07:00:00 -07:00
import_tar.py Initial Contribution 2008-10-21 07:00:00 -07:00
import_zip.py Initial Contribution 2008-10-21 07:00:00 -07:00
main.py Remove the Python 2.4 dependency and use just 'python' 2008-10-21 07:12:42 -07:00
Makefile Initial Contribution 2008-10-21 07:00:00 -07:00
manifest.py Initial Contribution 2008-10-21 07:00:00 -07:00
pager.py Initial Contribution 2008-10-21 07:00:00 -07:00
project.py Fix StopIteration exception during repo {sync,status} 2008-10-21 13:59:08 -07:00
remote.py Initial Contribution 2008-10-21 07:00:00 -07:00
repo Remove the Python 2.4 dependency and use just 'python' 2008-10-21 07:12:42 -07:00