Configuring Token Lifetimes in Azure Active Directory
This section is for Microsoft Azure AD administrators who may want to configure the lifetimes of refresh tokens and access tokens issued by Azure Active Directory. If your organization already have these set, these steps are not necessary.
When the authentication is complete and a user consents to access to the resource (Microsoft Graph) with read only permissions, the Azure AD generates and sends two tokens: a refresh token and an access token. These tokens are specific to the user, resource, and permissions. The refresh token is used to authenticate further in the future without a need to login while the access token is a session token. Typically, a refresh token is saved and is used first in every session to generate a new access token, once the access token is generated, it is then used in following calls within that session.
Since these tokens can be used anytime without a need for a user to manually login, Azure AD allows you to configure the lifetime for such tokens. After a refresh token expires, a user must login and consent to access to resources and permissions to get a new refresh token generated. After an access token expires, an app can use a valid refresh token to get a new access token.
The configuration of these tokens' lifetime is an Azure AD functionality and is applied to all applications in that tenant. To configure these tokens, an Azure AD administrator must have the Azure AD PowerShell module installed. For more information about these tokens, their default values and configuration, see https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes.
To configure lifetimes for the refresh token and an access token:
FlexNet Manager Suite (On-Premises)
2023 R1