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.
FlexNet Beacon uses an Microsoft Azure Active Directory (AAD) native app for authentication when using Microsoft 365 inventory connections. A customer has an option to use the Flexera-created native app for this authentication or they can create their own.
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 to configure the lifetime for such tokens. After a refresh token is expired, a user must login and consent access to resource and permissions to get a new refresh token generated. After an access token is expired, 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 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 the refresh token and an access token lifetimes, an Azure AD administrator opens an elevated PowerShell prompt (run as administrator) and performs the following PowerShell commands (shown in codeboxes in these steps):
FlexNet Manager Suite (On-Premises)
2020 R2