Have you tried setting for a specific app following this?
https://learn.microsoft.com/en-us/entra/identity-platform/configure-token-lifetimes
Note that it is preview
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
We're encountering issues while trying to set a 24-hour access token lifetime ("23:59:59"
) for a specific app using client credentials flow with the /oauth2/v2.0/token
endpoint.
The TokenLifetimePolicy
is created and assigned to the service principal.
It shows as assigned, but the token lifetime remains 1 hour.
"isOrganizationDefault": true
, it works — but applies to all apps in the tenant, which is a security concern because it overrides the token lifetime for all applications within the tenant, rather than being scoped to a specific app. Is this a limitation we’re encountering, or is there something we’re missing?
Reference: https://learn.microsoft.com/en-us/graph/api/resources/tokenlifetimepolicy?view=graph-rest-1.0 https://learn.microsoft.com/en-us/graph/api/application-post-tokenlifetimepolicies?view=graph-rest-1.0&tabs=javascript
Thanks
Have you tried setting for a specific app following this?
https://learn.microsoft.com/en-us/entra/identity-platform/configure-token-lifetimes
Note that it is preview
Does this help clarify things a bit?