How to create a policy to set MaxInactiveTime and MaxAgeMultiFactor of refresh tokens for a particular application

Yasitha Pandithawatta 121 Reputation points
2021-02-16T10:03:36.667+00:00

I want to set MaxAgeMultiFactor to until-revoked and MaxInactiveTime to 30 days of a refresh tokens which generated against a particular app.

I was following the below two documentations.

  1. https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes
  2. https://learn.microsoft.com/en-us/azure/active-directory/develop/configure-token-lifetimes

But when try to create a policy with following definition it gives an error.

Definition: "{"TokenLifetimePolicy":{"Version":1, "MaxAgeMultiFactor":"until-revoked","MaxInactiveTime":"30.00:00:00"}}"

Error: "Configure Token Lifetime for RT/ST (Refresh/Session Token) has been retired on May 30, 2020. New policy cannot be created anymore. Refer https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes for more information"

Error contains the exact documentation I followed and I took the definition from the documentation.

How can I achive this? I am doing anything wrong here?

Is it possible to achive this using conditional access policy. How can I create a conditional policy to achive this?

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
799 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,570 questions
{count} votes

Accepted answer
  1. Saurabh Sharma 23,751 Reputation points Microsoft Employee
    2021-02-18T16:06:51.487+00:00

    @Yasitha Pandithawatta
    As mentioned in configurable token lifetimes documentation the default value of MaxAgeMultifactor for refresh tokens is until revoked. So you should not have to do anything extra.
    69578-image.png

    Also, the MaxInactiveTime has been discontinued and cannot be configured.

    69636-refreshtokeninactivetime.png

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


0 additional answers

Sort by: Most helpful