Closed nimeso closed 7 years ago
Hey, right now tokens are not eternal and will always have a lifetime.
But you can set the token life via config with tokenLife
and you can use autoRefreshLifetime
to refresh its life with every successful request.
So you could give the token a life of 10 days or 100 years if you wanted.
Thanks so much! So that means:
RESTfulAPI_TokenAuthenticator: tokenOwnerClass: 'Member' tokenLife: 3153600000 autoRefreshLifetime: true
should this do the trick? thats 100 years in seconds I think?
On Thu, Nov 24, 2016 at 7:09 AM, Thierry François notifications@github.com wrote:
Hey, right now tokens are not eternal and will always have a lifetime.
But you can set the token life via config with tokenLife and you can use autoRefreshLifetime to refresh its life with every successful request.
So you could give the token a life of 10 days or 100 years if you wanted.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/colymba/silverstripe-restfulapi/issues/73#issuecomment-262590381, or mute the thread https://github.com/notifications/unsubscribe-auth/ABtn5dTl9AvZTNNY5ms1f97UQp-ewDYVks5rBIFUgaJpZM4K55JI .
q-p
/\"/\
(=*=') JAMIE BARKER ^---^
-._
P: +64 3 338 2482 Skype: jam.dog
That would do it. Once the token is first generated you have 100 years to use it. :)
Hi ya,
Is there a easy way to to extend the token life OR turn off checking it?
Cheers J