Skip to content

Commit

Permalink
Update README.md (#141)
Browse files Browse the repository at this point in the history
Add instructions for environment variables.
  • Loading branch information
yanshiyason authored and TheRoyalTnetennba committed Jul 12, 2018
1 parent b18bf26 commit cd2e0cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd2e0cf

Please sign in to comment.