Score:0

Ouath2 Consent screen fails in gcloud without providing verification option at the command prompt

gl flag

I am a newbe & trying to run the Python quickstart sample script from gcloud CLI. The script is here https://developers.google.com/classroom/quickstart/python.

I have the scope set and Oauth2 creds are also set to include the scope. I am unable to authorise/allow the app. When running the program, the terminal returns an appropriate string for authorisation, which when visited in the browser displays the correct page for the scope.

I believe it is common for the authentication to report This site can't be reached but with a workaround to copy part of the returned browser string and paste it into the console.

All good. But the console does not provide the expected prompt Enter verification code: and thus has no way to proceed.

I have tried ensuring no firewalls or antivirus are blocking return strings, changing the port settings in the script, using alternate browsers, clearing the cache, and flushing DNS. No joy.

I am using a python virtual environment, but am unsure if this will affect the return of authorisation requests (or how). Once consented

  1. the authorisation is not granted and
  2. there is no prompt available in the console to permit the section of the consent URL to be pasted or entered.

Sample [4/0AWgavde_fLP5wSOsw00bfWWT28gNzBxJMwlYf3r6CU...................].

Has anybody experienced something similar?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.