How to extend the expiry of access token generated by Azure app registration

Dileepa Mabulage 5 Reputation points
2023-09-30T17:08:39.1+00:00

I created a app using azure ad app registration and Im using that app to authenticate via azure ad, when the aceess token is generated its only allwed to use within 1 hour, How can I extends that lifetime.

In the token configuration I cannot find a solution

User's image

User's image

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,909 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 2023-10-01T00:59:39.2466667+00:00

    Hello @Dileepa Mabulage , Azure AD access token lifetime cannot be extended and usually range from 60 to 90 minutes. An exception to the former are mobile and desktop clients that access SharePoint Online and OneDrive for Business resources where you can extend them using Configurable token lifetimes in the Microsoft identity platform (preview).

    For more information take a look to access token lifetime.

    You can, however, request refresh tokens which can be used to issue new access tokens. The default lifetime for the refresh tokens is 24 hours for single page apps and 90 days for all other scenarios. Refresh tokens replace themselves with a fresh token upon every use.

    For more information take a look to refresh token lifetime.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.

    2 people found this answer helpful.
    0 comments No comments