Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48312

Token received from embedded API does not respect TokenLifetimePolicy that has been set in policies

$
0
0

I require the embed tokens I receieve back from the embedded API to live longer than the defaulted hour. I followed the information here

 

https://docs.microsoft.com/en-gb/azure/active-directory/develop/active-directory-configurable-token-lifetimes#example-token-lifetime-policies

 

and set a new policy for "AccessTokenLifetime" with the following

 

 New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"23:59:59"}}') -DisplayName "WebPolicyScenario" -IsOrganizationDefault $false -Type "TokenLifetimePolicy"

   

I then assigned this policy to my application using the Add-AzureADApplicationPolicy command.

 

However the tokens I get back still have one hour expiration, is there something I am missing? I have also tried setting MaxAgeSessionSingleFactor, but with no success.

 

Thanks


Viewing all articles
Browse latest Browse all 48312

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>