99import jakarta .ws .rs .client .ClientRequestContext ;
1010import jakarta .ws .rs .core .HttpHeaders ;
1111
12- import org .jboss .logging .Logger ;
1312import org .jboss .resteasy .reactive .client .spi .ResteasyReactiveClientRequestContext ;
1413import org .jboss .resteasy .reactive .client .spi .ResteasyReactiveClientRequestFilter ;
1514
1615import io .quarkiverse .openapi .generator .providers .OAuth2AuthenticationProvider ;
16+ import io .quarkus .logging .Log ;
1717import io .quarkus .oidc .client .Tokens ;
1818import io .quarkus .oidc .client .runtime .AbstractTokensProducer ;
1919import io .quarkus .oidc .client .runtime .DisabledOidcClientException ;
2424public class ReactiveOidcClientRequestFilterDelegate extends AbstractTokensProducer
2525 implements ResteasyReactiveClientRequestFilter , OAuth2AuthenticationProvider .OidcClientRequestFilterDelegate {
2626
27- private static final Logger LOG = Logger
28- .getLogger (ReactiveOidcClientRequestFilterDelegate .class );
2927 private static final String BEARER_SCHEME_WITH_SPACE = OidcConstants .BEARER_SCHEME + " " ;
3028
3129 final String clientId ;
@@ -45,7 +43,7 @@ protected java.util.Optional<String> clientId() {
4543 @ Override
4644 protected void initTokens () {
4745 if (earlyTokenAcquisition ) {
48- LOG .debug ("Token acquisition will be delayed until this filter is executed to avoid blocking an IO thread" );
46+ Log .debug ("Token acquisition will be delayed until this filter is executed to avoid blocking an IO thread" );
4947 }
5048 }
5149
@@ -69,10 +67,10 @@ public void accept(Tokens tokens) {
6967 @ Override
7068 public void accept (Throwable t ) {
7169 if (t instanceof DisabledOidcClientException ) {
72- LOG .debug ("Client is disabled, acquiring and propagating the token is not necessary" );
70+ Log .debug ("Client is disabled, acquiring and propagating the token is not necessary" );
7371 requestContext .resume ();
7472 } else {
75- LOG .debugf ("Access token is not available, cause: %s, aborting the request" , t .getMessage ());
73+ Log .debugf ("Access token is not available, cause: %s, aborting the request" , t .getMessage ());
7674 requestContext .resume ((t instanceof RuntimeException ) ? t : new RuntimeException (t ));
7775 }
7876 }
0 commit comments