Skip to content

Commit

Permalink
Fixed compilation error (#561)
Browse files Browse the repository at this point in the history
Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
  • Loading branch information
hbelmiro authored Nov 10, 2023
1 parent d7561ef commit 02addbb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,29 @@ public class CompositeAuthenticationProvider extends AbstractCompositeAuthentica
{#for auth in oauthMethods.orEmpty}
@javax.enterprise.context.Dependent
{#if is-resteasy-reactive}
static class OidcClientRequestFilterDelegateImpl{auth_index} extends io.quarkus.oidc.client.reactive.filter.OidcClientRequestReactiveFilter implements io.quarkiverse.openapi.generator.providers.OAuth2AuthenticationProvider.OidcClientRequestFilterDelegate<org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext> {
{#else}
static class OidcClientRequestFilterDelegateImpl{auth_index} extends io.quarkus.oidc.client.filter.OidcClientRequestFilter implements io.quarkiverse.openapi.generator.providers.OAuth2AuthenticationProvider.OidcClientRequestFilterDelegate<javax.ws.rs.client.ClientRequestContext> {
{/if}
static class OidcClientRequestFilterDelegateImpl{auth_index} extends io.quarkus.oidc.client.reactive.filter.OidcClientRequestReactiveFilter implements io.quarkiverse.openapi.generator.providers.OAuth2AuthenticationProvider.OidcClientRequestFilterDelegate {

private final String clientId = io.quarkiverse.openapi.generator.OpenApiGeneratorConfig.getSanitizedSecuritySchemeName("{auth.name}");

@Override
protected Optional<String> clientId() {
return Optional.of(clientId);
}

@Override
public void filter(jakarta.ws.rs.client.ClientRequestContext requestContext) throws java.io.IOException {
filter((org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext)requestContext);
}
}
{#else}
static class OidcClientRequestFilterDelegateImpl{auth_index} extends io.quarkus.oidc.client.filter.OidcClientRequestFilter implements io.quarkiverse.openapi.generator.providers.OAuth2AuthenticationProvider.OidcClientRequestFilterDelegate {
private final String clientId = io.quarkiverse.openapi.generator.OpenApiGeneratorConfig.getSanitizedSecuritySchemeName("{auth.name}");

@Override
protected Optional<String> clientId() {
return Optional.of(clientId);
}
}
{/if}
{/for}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private void validateConfig() {
}
}

public interface OidcClientRequestFilterDelegate<T extends ClientRequestContext> {
void filter(T requestContext) throws IOException;
public interface OidcClientRequestFilterDelegate {
void filter(ClientRequestContext requestContext) throws IOException;
}
}

0 comments on commit 02addbb

Please sign in to comment.