Update README.md (#141)

Add instructions for environment variables.
This commit is contained in:
Shiyason 2018-07-13 04:20:30 +09:00 committed by Graham Paye
parent b18bf2683a
commit cd2e0cf3f1
1 changed files with 9 additions and 0 deletions

View File

@ -143,6 +143,15 @@ authorizer = Google::Auth::ServiceAccountCredentials.make_creds(
authorizer.fetch_access_token!
```
### Example (Environment Variables)
```bash
export GOOGLE_ACCOUNT_TYPE=service_account
export GOOGLE_CLIENT_ID=000000000000000000000
export GOOGLE_CLIENT_EMAIL=xxxx@xxxx.iam.gserviceaccount.com
export GOOGLE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n"
```
### Storage
Authorizers require a storage instance to manage long term persistence of