Skip to content

Commit aaf4919

Browse files
Fix formatting
Signed-off-by: gabriel-farache <[email protected]>
1 parent 95315e8 commit aaf4919

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

client/deployment/src/test/java/io/quarkiverse/openapi/generator/deployment/wrapper/OpenApiClientGeneratorWrapperTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void verifyOneOfDiscriminatorGeneration() throws java.net.URISyntaxException, Fi
104104
final CompilationUnit compilationUnit = StaticJavaParser.parse(classWithDiscriminator.orElseThrow());
105105
assertThat(compilationUnit.findFirst(ClassOrInterfaceDeclaration.class)
106106
.flatMap(first -> first.getAnnotationByClass(com.fasterxml.jackson.annotation.JsonSubTypes.class)))
107-
.isNotPresent();
107+
.isNotPresent();
108108
}
109109

110110
/**

client/integration-tests/auth-provider/src/test/java/io/quarkiverse/openapi/generator/it/auth/TokenWithCustomCredentialProviderTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import static io.quarkiverse.openapi.generator.it.auth.TokenExternalServicesMock.AUTHORIZATION_TOKEN;
44
import static io.restassured.RestAssured.given;
55

6-
import java.util.HashMap;
76
import java.util.Map;
87

98
import jakarta.ws.rs.core.HttpHeaders;

client/integration-tests/security/src/test/java/io/quarkiverse/openapi/generator/it/security/KeycloakServiceMock.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public class KeycloakServiceMock implements QuarkusTestResourceLifecycleManager
3636
public static final String AUTH_REQUEST_BODY = "grant_type=client_credentials";
3737

3838
private static final ThreadLocal<WireMockServer> wireMockServer = new ThreadLocal<>();
39+
3940
@Override
4041
public Map<String, String> start() {
4142
wireMockServer.set(new WireMockServer(options().dynamicPort()));

client/oidc/src/main/java/io/quarkiverse/openapi/generator/oidc/providers/OAuth2AuthenticationProvider.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
import org.slf4j.LoggerFactory;
1313

1414
import io.quarkiverse.openapi.generator.providers.AbstractAuthProvider;
15+
import io.quarkiverse.openapi.generator.providers.AuthUtils;
16+
import io.quarkiverse.openapi.generator.providers.ConfigCredentialsProvider;
1517
import io.quarkiverse.openapi.generator.providers.CredentialsProvider;
1618
import io.quarkiverse.openapi.generator.providers.OperationAuthInfo;
17-
import io.quarkus.oidc.common.runtime.OidcConstants;
1819

1920
public class OAuth2AuthenticationProvider extends AbstractAuthProvider {
2021

@@ -30,6 +31,11 @@ public OAuth2AuthenticationProvider(String name,
3031
validateConfig();
3132
}
3233

34+
public OAuth2AuthenticationProvider(String name,
35+
String openApiSpecId, OidcClientRequestFilterDelegate delegate, List<OperationAuthInfo> operations) {
36+
this(name, openApiSpecId, delegate, operations, new ConfigCredentialsProvider());
37+
}
38+
3339
@Override
3440
public void filter(ClientRequestContext requestContext) throws IOException {
3541
String bearerToken;

0 commit comments

Comments
 (0)