benbaran / adal-angular4

Angular 4/5/6/7 ADAL Wrapper
MIT License
86 stars 104 forks source link

How to config token expiry time #54

Closed FrankyHuQingFeng closed 6 years ago

FrankyHuQingFeng commented 6 years ago

The default token expiry time is one hour. However I want to test token renew which will make me wait for one hour.

When i search online, I find https://docs.microsoft.com/en-us/azure/active-directory/active-directory-configurable-token-lifetimes which have the "AccessTokenLifetime" and I also see "expireOffsetSeconds" for the adal-angular4 config. However both of them are not working.

Anyone can help?

FrankyHuQingFeng commented 6 years ago

I use angular 6 and adal-angular version 3.01

geerzo commented 6 years ago

That documentation are AAD settings, not client settings. They are global to your AAD instance. You have to configure them via PowerShell with these commands.

Since this isn't a client library issue I'm going to close the issue.