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
- the authorisation is not granted and
- 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?