1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

office365-imap: fix a bug

This commit is contained in:
Alireza Lotfi 2022-09-13 15:55:46 -04:00
parent bc9eb6ab34
commit 281786bfca

View file

@ -38,7 +38,7 @@ class Office365ImapTransport(ImapTransport):
self.server.authenticate("XOAUTH2", lambda x: auth_string)
self.server.select()
def get_office365_access_token():
def get_office365_access_token(self):
url = f"https://login.microsoftonline.com/{settings.MICROSOFT_0365_TENENT_ID}/oauth2/v2.0/token"
oauth_params = {
"client_id": settings.MICROSOFT_0365_CLIENT_ID,