django-mailbox icon indicating copy to clipboard operation
django-mailbox copied to clipboard

No Token available in python-social-auth

Open entissar12 opened this issue 6 years ago • 2 comments

Hello, After installing django mailbox, and adding a new active mailbox as below: name : my gmail address url: gmail+ssl://myaddress%40gmail.com:[email protected]?archive=Archived When I run

python manage.py getmail

I get the following error: No Token available in python-social-auth for my gmail address

Can anyone help me please?

entissar12 avatar Aug 26 '19 14:08 entissar12

To handle the handshake and storing the credentials, use python-social-auth.

https://django-mailbox.readthedocs.io/en/latest/topics/mailbox_types.html#gmail-imap-with-oauth2-authentication

See:

https://github.com/coddingtonbear/django-mailbox/blob/26786a0b3200515d490ecb69e1bc5b86efcc0ffb/django_mailbox/transports/gmail.py#L36-L49

https://github.com/coddingtonbear/django-mailbox/blob/26786a0b3200515d490ecb69e1bc5b86efcc0ffb/django_mailbox/google_utils.py#L27-L33

ad-m avatar Aug 27 '19 08:08 ad-m

@entissar12 May I ask how did you solve the problem? I have the same issue but I am pretty sure I have python-social-auth installed

RealNicolasBourbaki avatar Jun 27 '21 21:06 RealNicolasBourbaki

Ok the documenation is not so clear on that, but basically you have multiple options:

pfouque avatar Dec 17 '23 07:12 pfouque

I'm closing that issue because it's really old but feel free to re-open if needed

pfouque avatar Dec 17 '23 07:12 pfouque