DescriptionAdd OAuth2 support for end users (i.e. 3-legged flow with the browser).
This CL introduces new top level command for managing cached auth tokens:
$ depot-tools-auth login codereview.chromium.org
$ depot-tools-auth info codereview.chromium.org
$ depot-tools-auth logout codereview.chromium.org
All scripts that use rietveld.Rietveld internally should be able to use cached
credentials created by 'depot-tools-auth' subcommand. Also 'depot-tools-auth'
is the only way to run login flow. If some scripts stumbles over expired or
revoked token, it dies with the error, asking user to run
'depot-tools-auth login <hostname>'.
Password login is still default. OAuth2 can be enabled by passing --oauth2 to
all scripts.
R=maruel@chromium.org
BUG=356813
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=294764
Patch Set 1 #
Total comments: 32
Patch Set 2 : #
Total comments: 2
Patch Set 3 : forgout to commit multistore_file.py modification #Patch Set 4 : #
Total comments: 1
Patch Set 5 : fix bugs #
Total comments: 2
Patch Set 6 : #Patch Set 7 : windows lineendings for depot-tools-auth.bat #
Messages
Total messages: 19 (6 generated)
|