'[AUTHENTICATIONFAILED] Invalid credential error (error) for gmail.readonly, gmail.modify, etc.

I am getting the error listed in the title for gmail.readonly

, gmail.modify

and all other scopes except for the Full Account Access area ( https://mail.google.com/ ). Here is what I am trying to do.

I have a setup django-allauth

to access network access tokens (OAUTH2 bearer token and refresh tokens). I am using this token to receive email using python imaplib. It works when I specify full scope for account access, but doesn't work for scope gmail.readonly

. And I don't need full access as I just want to receive emails with imaplib

.

Link Link

+3


source to share





All Articles