Skip to main content

Azure Entra Refresh Token

Description​

General​

  • Documentation: https://learn.microsoft.com/en-us/entra/identity-platform/refresh-tokens
  • Summary: A Microsoft Entra refresh token is issued to an application, next to an access token, after a user signs in. With the application's client ID, the refresh token gets new access tokens for that user, without the user being present. It grants the permissions the user gave to the application, such as Azure Resource Manager or Microsoft Graph access.

Refresh tokens last 90 days by default (24 hours for single-page applications) and are replaced by a fresh token on every use. They are often leaked in MSAL token caches, such as the Azure CLI msal_token_cache.json file.

Revoke the secret​

A user or an admin can revoke all refresh tokens of a user, for example from the user's page in the Microsoft Entra admin center ("Revoke sessions"), or with the Microsoft Graph revokeSignInSessions API. Resetting the user's password also revokes them. See https://learn.microsoft.com/en-us/entra/identity-platform/refresh-tokens#token-revocation

Details for Azure Entra Refresh Token​

  • Family: credentials

  • Category: cloud_provider

  • Company: Microsoft

  • High recall: False

  • Validity check available: True

  • Analyzer available: False

  • Revoker available: False

  • On-premise instances exist: False

  • Only valid secrets raise an alert: False

  • Occurrences found for one million commits: 0.01

  • Prefixed: False