You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expires_in: The lifetime of the access token in seconds.
buffer_time: The amount of time (in seconds) you want to subtract from the token lifetime to ensure that you refresh the token before it expires. This is typically a small value, such as 60 seconds, to avoid any chance of the token expiring before it can be refreshed.
refresh_in: The time (in seconds) after which you should refresh the access token to ensure that it remains valid.
The value of 0.50 in the formula is a recommended value for the refresh time. This ensures that the token is refreshed before it expires while also minimizing the number of unnecessary refreshes.
For example, if the token lifetime is 3600 seconds (1 hour) and the buffer time is 60 seconds, then the refresh time would be:
gladjohn
changed the title
[Feature Request] Managed Identity - Calculate the refresh_in value
[Feature Request] Managed Identity - Calculate the refresh_in value based on exires_in
Apr 7, 2023
pmaytak
changed the title
[Feature Request] Managed Identity - Calculate the refresh_in value based on exires_in
[Feature Request] Managed Identity - Calculate the refresh_in value based on expires_in
Apr 14, 2023
Managed Identity Endpoints do not give us
refresh_in
. The plan is to calculate this in MSALA sample Managed Identity Token response from IMDS Endpoint is seen below,
Compute refresh_in as 1/2 expires_in, but only if expires_in > 2h.
Where:
buffer_time: The amount of time (in seconds) you want to subtract from the token lifetime to ensure that you refresh the token before it expires. This is typically a small value, such as 60 seconds, to avoid any chance of the token expiring before it can be refreshed.The value of 0.50 in the formula is a recommended value for the refresh time. This ensures that the token is refreshed before it expires while also minimizing the number of unnecessary refreshes.
For example, if the token lifetime is 3600 seconds (1 hour)
and the buffer time is 60 seconds, then the refresh time would be:The text was updated successfully, but these errors were encountered: