Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I am trying to set the maximum timeout for embed token using C#, can someone tell me if it possible to change it from default 1 hour?
Solved! Go to Solution.
Hi @Anonymous,
Yes, you can. You need to configure it in the Azure. Please refer to active-directory-configurable-token-lifetimes#example-manage-an-organizations-default-policy. I tried it like below successfully.
New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"02:00:00","MaxAgeSessionSingleFactor":"02:00:00","MaxInac tiveTime":"30.00:00:00","MaxAgeMultiFactor":"until-revoked","MaxAgeSingleFactor":"180.00:00:00"}}') -DisplayName "WebApiDefaultPolicyScenario" -IsOrganizationDefault $true - Type "TokenLifetimePolicy"
Best Regards,
Dale
Hi @Anonymous,
Yes, you can. You need to configure it in the Azure. Please refer to active-directory-configurable-token-lifetimes#example-manage-an-organizations-default-policy. I tried it like below successfully.
New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"02:00:00","MaxAgeSessionSingleFactor":"02:00:00","MaxInac tiveTime":"30.00:00:00","MaxAgeMultiFactor":"until-revoked","MaxAgeSingleFactor":"180.00:00:00"}}') -DisplayName "WebApiDefaultPolicyScenario" -IsOrganizationDefault $true - Type "TokenLifetimePolicy"
Best Regards,
Dale
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
2 | |
2 | |
1 |