DEV Community

Discussion on: Managing your Labels in Gmail

Collapse
 
camarillocorp profile image
Jesús Camarillo

This is great!!! I can work with this and other related things with no issue on local environment, but when trying to get the Auth Consent screen it just not working.

from_client_secrets_file

flow = InstalledAppFlow.from_client_secrets_file(
'client_secrets.json',
scopes=['googleapis.com/auth/androidmanagem...)

creds = flow.run_local_server(
    host='localhost',
    port=8080,
Enter fullscreen mode Exit fullscreen mode

Do you have any tutorial or info on how to make it work on live ubuntu server? Thank you

Collapse
 
basman profile image
Adam.S

Hi.
Did you take a look at article one in the series? Followed the guide here: medium.com/better-programming/a-be...

Also at the end of the article there is reference to an issue that I myself had. When using my default browser, which is opened by the script, I was unable to authenticate. I had to copy the generated link in a different browser; while I was still attempting to authenticate. Check the first article, and if you still have trouble I will see if I can give you some additional help. But it's been a while since I have looked at this.