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 Security | Microsoft Graph
Microsoft Security | Microsoft Identity Manager
0 comments No comments
{count} votes

Answer accepted by question author
  1. Anonymous
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.