commit | 58a58caa8fc2dac2c5feb8d8b9fe29bcba93157f | [log] [tgz] |
---|---|---|
author | Shawn Pearce <sop@google.com> | Thu Dec 08 09:24:24 2016 -0800 |
committer | Shawn Pearce <sop@google.com> | Thu Dec 08 09:28:46 2016 -0800 |
tree | 2bfd7cae44e3d84c52dc1549551fb172155775d6 | |
parent | 7278586ba501b092fcf244c493c1f25048aa1167 [diff] |
Simple README.md for the git-cookie-authdaemon
The git-cookie-authdaemon
uses the GCE metadata server to acquire an OAuth2 access token and configures git
to always present this OAuth2 token when connecting to googlesource.com or Google Cloud Source Repositories.
Launch the GCE VMs with the gerritcodereview scope requested, for example:
gcloud compute instances create \ --scopes https://www.googleapis.com/auth/gerritcodereview \ ...
Install the daemon within the VM image and start it running:
sudo apt-get install git git clone https://gerrit.googlesource.com/gcompute-tools/ ./gcompute-tools/git-cookie-authdaemon
The daemon launches itself into the background and continues to keep the OAuth2 access token fresh.