Skip to content

Commit 8c19ff5

Browse files
committed
Adding 3.0.0-lts-SNAPSHOT to auth-provider new IT
Signed-off-by: Ricardo Zanini <[email protected]>
1 parent 480ce77 commit 8c19ff5

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

client/integration-tests/auth-provider/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<artifactId>quarkus-openapi-generator-integration-tests</artifactId>
55
<groupId>io.quarkiverse.openapi.generator</groupId>
6-
<version>3.0.0-SNAPSHOT</version>
6+
<version>3.0.0-lts-SNAPSHOT</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public class OAuth2AuthenticationProvider extends AbstractAuthProvider {
2525
private final OidcClientRequestFilterDelegate delegate;
2626

2727
public OAuth2AuthenticationProvider(String name,
28-
String openApiSpecId, OidcClientRequestFilterDelegate delegate, List<OperationAuthInfo> operations,
29-
CredentialsProvider credentialsProvider) {
28+
String openApiSpecId, OidcClientRequestFilterDelegate delegate, List<OperationAuthInfo> operations,
29+
CredentialsProvider credentialsProvider) {
3030
super(name, openApiSpecId, operations, credentialsProvider);
3131
this.delegate = delegate;
3232
validateConfig();
@@ -72,7 +72,7 @@ public void filter(ClientRequestContext requestContext) throws IOException {
7272
private void validateConfig() {
7373
if (isTokenPropagation()) {
7474
LOGGER.warn("Token propagation was enabled for a the oauth2: {} securityScheme in the specification file: {}. " +
75-
"This configuration can be done by using the property: {} and is not necessary a problem if the configuration is intentional.",
75+
"This configuration can be done by using the property: {} and is not necessary a problem if the configuration is intentional.",
7676
getName(), getOpenApiSpecId(), getCanonicalAuthConfigPropertyName(TOKEN_PROPAGATION));
7777
}
7878
}

client/runtime/src/main/java/io/quarkiverse/openapi/generator/providers/AbstractAuthProvider.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import java.util.List;
99
import java.util.Objects;
1010

11-
import io.vertx.codegen.doc.Token;
1211
import jakarta.ws.rs.core.HttpHeaders;
1312
import jakarta.ws.rs.core.MultivaluedMap;
1413

@@ -31,7 +30,7 @@ public abstract class AbstractAuthProvider implements AuthProvider {
3130
private final List<OperationAuthInfo> applyToOperations = new ArrayList<>();
3231

3332
protected AbstractAuthProvider(String name, String openApiSpecId, List<OperationAuthInfo> operations,
34-
CredentialsProvider credentialsProvider) {
33+
CredentialsProvider credentialsProvider) {
3534
this.name = name;
3635
this.openApiSpecId = openApiSpecId;
3736
this.applyToOperations.addAll(operations);
@@ -117,12 +116,11 @@ public CredentialsProvider getCredentialsProvider() {
117116
return credentialsProvider;
118117
}
119118

120-
121119
protected void addAuthorizationHeader(MultivaluedMap<String, Object> headers, String value) {
122120
headers.put(HttpHeaders.AUTHORIZATION, Collections.singletonList(value));
123121
}
124122

125123
protected static boolean isEmptyOrBlank(String value) {
126124
return value == null || value.isBlank();
127125
}
128-
}
126+
}

0 commit comments

Comments
 (0)