Skip to content

Commit

Permalink
doc: Add disclaimer to use "Desktop" type for OAuth client ID (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyrzhao authored Apr 15, 2024
1 parent 55ad5ab commit 5ecd939
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ $ oauth2l fetch --help
Specifies an OAuth credential file (either an OAuth client ID or a Service
Account key) to start the OAuth flow. You can download the file from
[Google Cloud Console](https://console.cloud.google.com/apis/credentials).
If you wish to use OAuth client ID with oauth2l, please choose "Desktop"
(instead of "Web", etc.) for your application type when generating the file,
so that the post-authentication flow can correctly redirect to the oauth2l
localhost server.

```bash
$ oauth2l fetch --credentials ~/service_account.json --scope cloud-platform
Expand Down

0 comments on commit 5ecd939

Please sign in to comment.