we need to change the default lifetime of ours access_tokens. The default time is 1 hour and we need to change to 15 minutes by a Security Area request.
We have an Azure AD B2C tenant, where we created App Registrations for our Daemon Apps and Web Applications.
Web Application uses authorization_code with custom policies, here we can change the token's lifetime with custom policies configurations.
But, Daemon Apps uses client_credentials with "standard request":
curl --location 'https://login.microsoftonline.com/{TENANT}/oauth2/v2.0/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id={CLIENT_ID}' \
--data-urlencode 'client_secret={CLIENT_SECRET}' \
--data-urlencode 'scope=https://{TENANT}.onmicrosoft.com/{CLIENT_ID}/.default'
We didn't try anything yet, we didn't find the correct documentation in azure portal.
So the question is: how we can configure the access_token's lifetime in that scenario?
PD: Sorry for my English.