Open cwilko opened 1 year ago
I've managed to progress, but this is an issue if you decide to copy and paste the authorization url that is output via the following parameter authorization_prompt_message='Please visit this URL: {}'.format(authorization_url)
flow.run_local_server()
generates a new authorization url internally which does not match the one output in the above prompt. The difference is the content of the state
parameter.
I`m not sure how to fix this... might be best to remove the prompt and just rely on the page opened by the browser.
how did you manage to fix login?
ok you can't rely on the url it prints, you'll have to use the url the script automatically opens
Please answer these questions before submitting your issue. Thanks!
What version of Python are you using (
python -V
)?Tried 3.6 and 3.9
What operating system and processor architecture are you using (
python -c 'import platform; print(platform.uname());'
)?Ubuntu
Which Python packages do you have installed (run the
pip freeze
orpip3 freeze
command and paste output)?What did you do?
When i run the gmail_oauth.py script, and approve permissions in the browser, the script fails with the following stack:
What did you expect to see?
A generated credentials file
What did you see instead?
Does this issue reproduce with the latest release?
Seen on master