Skip to content

OIDC Automatic token refresh #37632

Answered by sberyozkin
pmaciek asked this question in Q&A
Dec 8, 2023 · 4 comments · 6 replies
Discussion options

You must be logged in to vote

@pmaciek Unfortunately everything what I said can be ignored because now that you have given the example, I see that you don't use quarkus-oidc but use quarkus-oidc-client, I should've asked for more details earlier.

OIDC client is totally independent from the server side OIDC adapter which is what I thought you were using.

So OIDC client checks if the access token has expired and if yes it refreshes it. But what can happen is that it can propagate a nearly expired token and 401 will be returned as by the time it reaches the target, it will be expired possibly due to the clock issues.

To minimise the risk of 401, you can also use the refresh skew, but in the quarkus.oidc-client namespace,…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pmaciek
Comment options

@sberyozkin
Comment options

Comment options

You must be logged in to vote
1 reply
@pmaciek
Comment options

Comment options

You must be logged in to vote
3 replies
@sberyozkin
Comment options

@pmaciek
Comment options

@sberyozkin
Comment options

Answer selected by pmaciek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants