Open IvanPuntev opened 1 month ago
/cc @pedroigor (oidc), @sberyozkin (oidc)
@IvanPuntev Thanks, just to clarify, we definitely can not do a retry at the OIDC client filter level, we can only try to help it understand that what it sees as a valid token must be refreshed. The actual retry will have to be initiated by the user with fault tolerance annotations like @Retry
.
And please recall, users always have an option to take full control by using OidcClient directly
Description
Regarding https://github.com/quarkusio/quarkus/discussions/43904 Similar to https://github.com/quarkusio/quarkus/issues/43799
The oidc client doesn't try to get a new token if the old one is revoked. Currently you need to implement a solution yourself to check if 401 response is received. It would be nice if this is handled by the framework out of the box.
Implementation ideas
If more than one oidc client is used in the code then this retry needs to be handled only for the specific client.