quarkus refreshes tokens too late #44045
-
Hello supporters, These tokens are valid for 5 minutes. In the documentation I found the property
The alternative property My application is not a web app, so I do not want to set the property As soon as I activate it, the error message
appears. Does anyone have any advice? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
@swBot Hi, The bearer access token can not be refreshed by the endpoint which receives it, only the external client which holds the refresh token can. This is why the application fails to start if you try to enable a token refresh. Which entity does send this token to Quarkus ? |
Beta Was this translation helpful? Give feedback.
-
successfully completed |
Beta Was this translation helpful? Give feedback.
the check is
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