Samuel-Fiddis commented on pull request #15808:
URL: https://github.com/apache/flink/pull/15808#issuecomment-849248037


   I've updated and compiled the source code appending the following to the 
CachedSchemaCoderProvider class with the SchemaCoder get() method:
   
   import io.confluent.kafka.schemaregistry.client.SchemaRegistryClientConfig;
   import 
io.confluent.kafka.schemaregistry.client.security.basicauth.UserInfoCredentialProvider;
   
   @Override
   public SchemaCoder get() {
     RestService restService = new RestService(url);
     if(registryConfigs != null && 
Objects.equals(registryConfigs.get(SchemaRegistryClientConfig.BASIC_AUTH_CREDENTIALS_SOURCE),
 "USER_INFO")) {
                     UserInfoCredentialProvider provider = new 
UserInfoCredentialProvider();
                     provider.configure(registryConfigs);
                     restService.setBasicAuthCredentialProvider(provider);
     }
   }
   ....
   
   But it doesn't look like the basic auth properties are passed from the Table 
API through to the registryConfigs map. When I've hard coded the properties 
into the registryConfigs everything works fine and the confluent schema 
registry works with basic auth access.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to