0

I set AzureADPolicy by

New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"00:10:00","MaxInactiveTime":"00:10:30","MaxAgeSessionSingleFactor":"00:11:00"}}') -DisplayName "PolicyScenario" -IsOrganizationDefault $true -Type "TokenLifetimePolicy"

and AccessTokenLifetime is work, my access token expires in 600, buy MaxInactiveTime is not work, I also can get access token after 15 minute

Thanks for answer

Eric Lai
  • 3
  • 1

1 Answers1

0

I believe that you are using confidential clients (Azure AD application is registered as a "Web" application) rather than public clients ((Azure AD application is registered as a "Public client" application)).

MaxInactiveTime is only available for public clients app. It cannot be changed by using policy in confidential clients app.

See more details here.

Allen Wu
  • 15,529
  • 1
  • 9
  • 20