To change the default token expiration timeframe when using Azure AD for authentication, you can do the following.
First, if you haven’t yet, install the
AzureADPreview PowerShell Module:
Now, connect to Azure AD using an account that has access to manage App Registrations:
After that, check and delete any policies that currently exist
After that, create a new policy (this one is set for 30 minutes as an example):
And apply that policy to the service principal tied to the Azure AD integration:
Now verify that the policy is in place: