Skip to content

Commit

Permalink
[11.0][IMP] 3292S Microsoft SMTP token refresh issue
Browse files Browse the repository at this point in the history
  • Loading branch information
KKamaa committed Sep 13, 2023
1 parent a9c27a2 commit 3622b08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/microsoft_outlook/models/microsoft_outlook_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def _fetch_outlook_access_token(self, refresh_token):
"""
response = self._fetch_outlook_token('refresh_token', refresh_token=refresh_token)
return (
response['refresh_token'],
response['access_token'],
int(time.time()) + response['expires_in'],
)
Expand Down Expand Up @@ -164,6 +165,7 @@ def _generate_outlook_oauth2_string(self, login):
if not self.microsoft_outlook_refresh_token:
raise UserError(_('Please login your Outlook mail server before using it.'))
(
self.microsoft_outlook_refresh_token,
self.microsoft_outlook_access_token,
self.microsoft_outlook_access_token_expiration,
) = self._fetch_outlook_access_token(self.microsoft_outlook_refresh_token)
Expand Down

0 comments on commit 3622b08

Please sign in to comment.