Skip to content

Commit

Permalink
Update Authentication_with_OAuth.ipynb
Browse files Browse the repository at this point in the history
The equal sign after --scopes and the single quotes before the urls were being interpreted as part of the first scope URL. The last single quote was being interpreted as part of the third scope URL.

This caused a 400 error with the message "Some scopes invalid" and prevented sign in. Running the command without the = or ' was successful.
  • Loading branch information
KaylaMLe authored Apr 26, 2024
1 parent 4c13ca3 commit 3cbff2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickstarts/Authentication_with_OAuth.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
"source": [
"!gcloud auth application-default login \\\n",
" --no-browser --client-id-file client_secret.json \\\n",
" --scopes='https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/generative-language.tuning,https://www.googleapis.com/auth/generative-language.retriever'\n"
" --scopes https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/generative-language.tuning,https://www.googleapis.com/auth/generative-language.retriever\n"
]
},
{
Expand Down

0 comments on commit 3cbff2f

Please sign in to comment.