Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion flink-formats/flink-avro-confluent-registry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ under the License.
<name>Flink : Formats : Avro confluent registry</name>

<properties>
<confluent.version>7.5.3</confluent.version>
<confluent.version>7.9.8</confluent.version>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

META-INF/NOTICE still declares the old versions, can you update them as well.

<kafka.compatibility.version>3.9.2</kafka.compatibility.version>
</properties>

<repositories>
Expand Down Expand Up @@ -162,6 +163,12 @@ under the License.
<scope>test</scope>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>${kafka.compatibility.version}</version>
<scope>test</scope>
</dependency>

<!-- ArchUnit test dependencies -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,21 @@ void testThatBearerAuthIsInitializedForBearerAuthProperties() {
assertThat(bearerAuthCredentialProvider.getBearerToken(null)).isEqualTo(token);
}

@Test
void testThatOauthBearerAuthIsCompatibleWithKafkaClient39() {
Map<String, String> configs = new HashMap<>();
configs.put("bearer.auth.credentials.source", "OAUTHBEARER");
configs.put("bearer.auth.issuer.endpoint.url", "https://issuer.example/token");
configs.put("bearer.auth.client.id", "registry-api");
configs.put("bearer.auth.client.secret", "secret");

CachedSchemaCoderProvider provider = initCachedSchemaCoderProvider(configs);
BearerAuthCredentialProvider bearerAuthCredentialProvider =
getBearerAuthFromProvider(provider);

assertThat(bearerAuthCredentialProvider).isNotNull();
}

private String getAbsolutePath(String path) throws URISyntaxException {
return CachedSchemaCoderProviderTest.class.getResource(path).toURI().getPath();
}
Expand Down