Re: UAA: How to set client_credentials token grant type to not expire
Paul Bakare
Good. But my apologies. Assume:
creation time = 1438184877
access token validity (set by me) = 315360000
exp is expected to be 1753544877 when decoded. Unfortunately, this test
fails, as exp reads 1438228276
toggle quoted message
Show quoted text
creation time = 1438184877
access token validity (set by me) = 315360000
exp is expected to be 1753544877 when decoded. Unfortunately, this test
fails, as exp reads 1438228276
On Wed, Jul 29, 2015 at 5:43 PM, Filip Hanik <fhanik(a)pivotal.io> wrote:
If I set the access_token_validity to 315569260, I'm expecting the tokenwhen decoded to read exp: 315569260. If this is not, then is it possible to
set the token expiry time?
It's a little bit different.
access_token_validity is how long the token is valid for from the time of
creation. thus we can derive
exp (expiration time) = token creation time + access token validity
you don't get to set the expiration time, since that doesn't make sense as
the clock keeps ticking forward.
in your case, having access token validity be 10 years, achieves exactly
what you want
Filip
On Wed, Jul 29, 2015 at 9:36 AM, Kayode Odeyemi <dreyemi(a)gmail.com> wrote:Thanks again Filip._______________________________________________
However, here's what I mean,
If I set the access_token_validity to 315569260, I'm expecting the token
when decoded to read exp: 315569260. If this is not, then is it possible to
set the token expiry time?
line 906 sets the value to 1438209609 when the token is decoded and I
believe that's what the check_token service also checks.
expirationTime*1000l occurs after the token has been decoded (whose exp
value is set to 1438209609)
Now the question is why do you have to do expirationTime*1000l since the
token when decoded originally set's this value to 1438209609 (without *
1000l)
Except I'm completely getting this all wrong?
_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev