Update README.md (#141)

Add instructions for environment variables.
This commit is contained in:
Shiyason authored and Graham Paye committed 2018-07-12 12:20:30 -07:00
1 parent b18bf2683a
commit cd2e0cf3f1
1 file changed
+9
+9
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