Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache kafka NiFi中的卡夫卡oauth 2.0_Apache Kafka_Oauth 2.0_Apache Nifi - Fatal编程技术网

Apache kafka NiFi中的卡夫卡oauth 2.0

Apache kafka NiFi中的卡夫卡oauth 2.0,apache-kafka,oauth-2.0,apache-nifi,Apache Kafka,Oauth 2.0,Apache Nifi,我发现了如何对卡夫卡执行OAuth2.0 我可以配置kafka并创建安全主题。在本教程中,考虑了控制台使用者和生产者: ./bin/kafka-console-producer.sh --broker-list localhost:9093 --topic oauth2-demo-topic --producer.config ./config/sasl-oauth2-producerapp-config.properties sasl-oauth2-producerapp-config.pr

我发现了如何对卡夫卡执行OAuth2.0

我可以配置kafka并创建安全主题。在本教程中,考虑了控制台使用者和生产者:

./bin/kafka-console-producer.sh --broker-list localhost:9093 --topic oauth2-demo-topic --producer.config ./config/sasl-oauth2-producerapp-config.properties
sasl-oauth2-producerapp-config.properties:

security.protocol=SASL_PLAINTEXT
sasl.mechanism=OAUTHBEARER
sasl.login.callback.handler.class=com.oauth2.security.oauthbearer.OAuthAuthenticateLoginCallbackHandler
sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule required OAUTH_LOGIN_SERVER=<OAuth-server-url> OAUTH_LOGIN_ENDPOINT='/oauth2/default/v1/token' OAUTH_LOGIN_GRANT_TYPE=client_credentials OAUTH_LOGIN_SCOPE=kafka OAUTH_AUTHORIZATION='Basic <encoded-producer-clientId:clientsecret>' OAUTH_INTROSPECT_SERVER=<OAuth-server-url> OAUTH_INTROSPECT_ENDPOINT='/oauth2/default/v1/introspect' OAUTH_INTROSPECT_AUTHORIZATION='Basic <encoded-producer-clientId:clientsecret>';
security.protocol=SASL\u明文
sasl.mechanism=OAuthBear
sasl.login.callback.handler.class=com.oauth2.security.oauthbear.OAuthAuthenticateLoginCallbackHandler
sasl.jaas.config=org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule所需的OAUTH\u登录\u服务器=OAUTH\u登录\u端点='/oauth2/default/v1/token'OAUTH\u登录\u授予类型=客户端\u凭证OAUTH\u登录\u范围=kafka OAUTH\u授权='Basic'OAUTH\u内省\u服务器=OAUTH\u内省\u端点='/oauth2/default/v1/INTROSPECT'OAUTH_INTROSPECT_AUTHORIZATION='Basic';
对于消费者来说也是如此


是否可以将此功能添加到NiFi中的卡夫卡生产者和消费者处理器?我找不到可以输入sasl-oauth2-producerapp-config.properties路径的位置,或者该属性直接指向处理器参数

您的问题尚未解决。看

您可以从NiFi连接中检查特殊标识符信息。