Inorder to send and receive secure emails from a custom domain all that is required is to configure a few settings on the Azure platform and on the back end of the Odoo database.token is generated I dont want that token gets expired

swathy 20 Reputation points
2024-05-15T11:03:40.0033333+00:00

In our Odoo system, we integrate with Microsoft Outlook for various functionalities like email communication, We encountered an issue where the access/refresh tokens used for authentication with Outlook were expiring after a certain period(90 days), causing disruptions in service , so how can I prevent it from expiring, is their any api or something to get new token?

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
5,706 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,909 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,942 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yakun Huang-MSFT 785 Reputation points Microsoft Vendor
    2024-05-16T07:14:17.61+00:00

    Hi @swathy

    The maximum lifetime of refresh token is 90 days, and this time cannot be modified. Therefore, before the access token expires, you need to redeem a new refresh token and replace the old refresh token with the new refresh token.

    Screenshot 2024-05-16 135953

    Screenshot 2024-05-16 140044

    More information about refresh token:

    https://learn.microsoft.com/en-us/entra/identity-platform/refresh-tokens

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


0 additional answers

Sort by: Most helpful