1
votes

I have a very simple ADFS environment with Angular ADAL app getting the JWT successfully. No matter what setting i change with "set-adfsproperties", token always expires after one hour. and that is forcing adal to retrieve a new token each hour.

I would like to token to live for 24 hours to avoid the refresh delay in the UI.

Has anyone been able to change the token expiration beyond the 1hr default?

1

1 Answers

2
votes

Try:

 Set-ADFSRelyingPartyTrust –TargetName "display name of relying party" –TokenLifetime 1440

To check the new value to make sure it is set do:

Get-ADFSRelyingPartyTrust –Name:"display name of relying party"

See:

ADFS 3.0 using OAuth and Persistent Refresh Tokens

https://blog.fullscope.com/increasing-adfs-token-timeout-time-for-microsoft-dynamics-crm-2011