0
votes

we are using Azure ADB2C with grant type as client credentials. We are sharing clientid, secret with customers to consume our APIs. We don't have any user flow created as it not required.

Is there anyway we can change the token lifetime to 15 min (default is 60min)

1

1 Answers

0
votes

Based on your description, I understand that you are using AAD client credentials flow because B2C doesn't support client credentials flow.

If so, your customer doesn't use the B2C feature.

You can configure token lifetime policies for your AAD feature.

$policy = New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"00:15:00"}}') -DisplayName "WebPolicyScenario" -IsOrganizationDefault $false -Type "TokenLifetimePolicy"