Skip to content

quarkus refreshes tokens too late #44045

Closed Answered by sberyozkin
swBot asked this question in Q&A
Oct 23, 2024 · 2 comments · 9 replies
Discussion options

You must be logged in to vote

the check is

final long nowSecs = System.currentTimeMillis() / 1000;
final boolean proactiveRefresh = nowSecs + refreshTokenTimeSkew > accessTokenExpiresAt;

So if the token will expire in 1 min from now, after waiting for 4 mins, this check will produce true, now + 3 mins skew will be after the token expiry date.

It feels like this property is not picked up, make sure it is set in the correct OIDC client tenant, for ex, quarkus.oidc-client.b2b.refresh-token-time-skew=3M

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
9 replies
@swBot
Comment options

@sberyozkin
Comment options

@sberyozkin
Comment options

@sberyozkin
Comment options

Answer selected by swBot
@swBot
Comment options

@sberyozkin
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants