token renewal flow

Tomoki 40 Reputation points
2024-09-17T10:43:42.73+00:00

Hi Microsoft Q&A and thanks in advance!

I want to consume an endpoint from Graph beta that only supports delegation permission type and I want to fully understand the renewal process as I saw different interval times in the documentation.

If the user grants delegation permissions to an application, is the app able to renew the token every 14 days during 90 days without the interaction of the user even if the user was only active during the permission grant process? And after the 90 days, the website needs the interaction of the user to renew the initial token to start the loop again?

thanks!

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
697 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,029 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yakun Huang-MSFT 4,720 Reputation points Microsoft Vendor
    2024-09-19T07:14:35.1466667+00:00

    Hi @Tomoki

    Yes, you can use auth code flow to get tokens and refresh tokens, refresh tokens have a lifetime of 90 days, during which you can use refresh Tokens to exchange for new tokens without user interaction.

    For more information about tokens you can see the documentation.

    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.