Go to file
JoonCheol Park e98607248e Support HTTP authentication using user input as fallback
If repo could not find authentication credentials from ~/.netrc, this
patch tries to get user and password from user's console input. This
could be a good choice if user doesn't want to save his plain password
in ~/.netrc or if user doesn't know about the netrc usage.

The user will be prompted only if authentication infomation does not
exist in the password manager. Since main.py firstly loads auth
infomation from ~/.netrc, this will be executed only as fallback
mechanism.

Example:
$ repo upload .
Upload project xxx/ to remote branch master:
 branch yyy ( 1 commit, ...):
 to https://review.zzz.com/gerrit/ (y/N)? y

(repo may try to access to https://review.zzz.com/gerrit/ssh_info and
will get the 401 HTTP Basic Authentication response from server. If no
authentication info in ~/.netrc, This patch will ask username/passwd)

Authorization Required (Message from Web Server)
User: pororo
Password:
....
[OK ] xxx/

Change-Id: Ia348a4609ac40060d9093c7dc8d7c2560020455a
2012-10-12 06:02:35 +09:00
docs Allow projects to be specified as notdefault 2012-09-05 11:46:48 -07:00
hooks Update commit-msg hook to version from Gerrit v2.5-rc0 2012-10-04 10:31:09 +02:00
subcmds Rename "dir" variables 2012-10-10 08:30:15 +02:00
tests Fix error parsing a non-existant configuration file 2009-07-02 16:12:57 -07:00
.gitignore .gitignore: add an entry for repopickles 2009-06-28 15:08:56 -07:00
.project Add PyDev project files to repo 2009-06-02 00:09:07 +02:00
.pydevproject Add PyDev project files to repo 2009-06-02 00:09:07 +02:00
color.py Coding style cleanup 2012-10-09 12:45:30 +02:00
command.py Coding style cleanup 2012-10-09 12:45:30 +02:00
COPYING Initial Contribution 2008-10-21 07:00:00 -07:00
editor.py Fix for handling values of EDITOR which contain a space. 2010-08-06 17:05:04 -07:00
error.py Coding style cleanup 2012-10-09 12:45:30 +02:00
git_command.py Rename "dir" variables 2012-10-10 08:30:15 +02:00
git_config.py Coding style cleanup 2012-10-09 12:45:30 +02:00
git_refs.py Coding style cleanup 2012-10-09 12:45:30 +02:00
git_ssh Don't allow git fetch to start ControlMaster 2010-10-29 08:15:14 -07:00
main.py Support HTTP authentication using user input as fallback 2012-10-12 06:02:35 +09:00
manifest_xml.py Coding style cleanup 2012-10-09 12:45:30 +02:00
pager.py Coding style cleanup 2012-10-09 12:45:30 +02:00
progress.py Support units in progress messages 2011-09-19 14:52:57 -07:00
project.py Rename "dir" variables 2012-10-10 08:30:15 +02:00
repo Rename "dir" variables 2012-10-10 08:30:15 +02:00
SUBMITTING_PATCHES Patches should be submitted to master, not maint 2012-08-21 14:06:10 +02:00
trace.py Fix repo --trace to show ref and config loads 2009-04-18 09:54:51 -07:00