Skip to content

Commit d8ddbf9

Browse files
committed
geminicli oauth: literal client id/secret, installed-app public metadata
1 parent 8b50de1 commit d8ddbf9

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

‎src/threecode/auth_google.nim‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@ import oauth, util
3232
const
3333
GoogleAuthorize = "https://accounts.google.com/o/oauth2/v2/auth"
3434
GoogleToken = "https://oauth2.googleapis.com/token"
35-
## Public desktop OAuth client metadata from the open-source
36-
## `@google/gemini-cli` (packages/core/src/code_assist/oauth2.ts);
37-
## not a secret. Split across string parts only so GitHub's push
38-
## protection does not match the (public) credential literally; keep
39-
## the pieces separate.
40-
GoogleClientId = "681255809395-" &
41-
"oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com"
42-
GoogleClientSecret = "GOCSPX-" &
43-
"4uHgMPm-1o7Sk-geV6Cu5clXFsxl"
35+
## Desktop OAuth client metadata from the open-source
36+
## `@google/gemini-cli` (packages/core/src/code_assist/oauth2.ts).
37+
## Installed-application credential; per Google's OAuth docs the
38+
## client secret is "obviously not treated as a secret" here:
39+
## https://developers.google.com/identity/protocols/oauth2#installed
40+
GoogleClientId = "681255809395-oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com"
41+
GoogleClientSecret = "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"
4442
GoogleScope = "https://www.googleapis.com/auth/cloud-platform " &
4543
"https://www.googleapis.com/auth/userinfo.email " &
4644
"https://www.googleapis.com/auth/userinfo.profile"

0 commit comments

Comments
 (0)