Skip to content

Commit

Permalink
Make registration of OAuthBearerValidatorCallbackHandler conditional
Browse files Browse the repository at this point in the history
`org.apache.kafka.common.security.oauthbearer.OAuthBearerValidatorCallbackHandler`
depends on the optional
`org.jose4j.keys.resolvers.VerificationKeyResolver` so it should only be
registered when the latter is present, similarly to
`org.apache.kafka.common.security.oauthbearer.secured.OAuthBearerValidatorCallbackHandler`

Closes quarkusio#38851
  • Loading branch information
zakkak committed Feb 19, 2024
1 parent f791e57 commit d88e0bd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,9 @@ public void withSasl(CombinedIndexBuildItem index,
reflectiveClassCondition.produce(new ReflectiveClassConditionBuildItem(
"org.apache.kafka.common.security.oauthbearer.secured.OAuthBearerValidatorCallbackHandler",
"org.jose4j.keys.resolvers.VerificationKeyResolver"));
reflectiveClassCondition.produce(new ReflectiveClassConditionBuildItem(
"org.apache.kafka.common.security.oauthbearer.OAuthBearerValidatorCallbackHandler",
"org.jose4j.keys.resolvers.VerificationKeyResolver"));
}

private void registerJDKLoginModules(BuildProducer<ReflectiveClassBuildItem> reflectiveClass) {
Expand Down

0 comments on commit d88e0bd

Please sign in to comment.