Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I require the embed tokens I receieve back from the embedded API to live longer than the defaulted hour. I followed the information here
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
Hi,
Same here, we tried it with a Service Principal used in our Embed for your Customers scenario but AuthenticationContext -> AcquireTokenAsync never return more than 1 hour in AuthenticationResult.
We are going to at least make sure to get a full hour instead of a random value (there is a token cache) by using this solution: https://community.powerbi.com/t5/Developer/Generate-Token-API-returns-token-with-variable-short-expi...
But did you resolve it any other way?
Thanks,
Frederick
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
4 | |
2 | |
1 | |
1 |
User | Count |
---|---|
29 | |
3 | |
3 | |
2 | |
2 |