File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,13 @@ class AvroConsumer(Consumer):
103
103
def __init__ (self , config , schema_registry = None ):
104
104
105
105
sr_conf = {key .replace ("schema.registry." , "" ): value
106
- for key , value in config .items () if key .startswith ("schema.registry." ) or key .startswith ("sasl" )}
106
+ for key , value in config .items () if key .startswith ("schema.registry." )}
107
+
108
+ if config .get ("schema.registry.basic.auth.credentials.source" ) == 'SASL_INHERIT' :
109
+ sr_conf ['sasl.mechanisms' ] = config .get ('sasl.mechanisms' , '' )
110
+ sr_conf ['sasl.username' ] = config .get ('sasl.username' , '' )
111
+ sr_conf ['sasl.password' ] = config .get ('sasl.password' , '' )
112
+
107
113
ap_conf = {key : value
108
114
for key , value in config .items () if not key .startswith ("schema.registry" )}
109
115
You can’t perform that action at this time.
0 commit comments