You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Zili Chen (Jira)" <ji...@apache.org> on 2022/10/18 05:29:00 UTC

[jira] [Assigned] (FLINK-29433) Support Auth through the builder pattern in Pulsar connector

     [ https://issues.apache.org/jira/browse/FLINK-29433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zili Chen reassigned FLINK-29433:
---------------------------------

    Assignee: Yufan Sheng

> Support Auth through the builder pattern in Pulsar connector
> ------------------------------------------------------------
>
>                 Key: FLINK-29433
>                 URL: https://issues.apache.org/jira/browse/FLINK-29433
>             Project: Flink
>          Issue Type: Improvement
>          Components: Connectors / Pulsar
>    Affects Versions: 1.17.0
>            Reporter: Yufan Sheng
>            Assignee: Yufan Sheng
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.17.0
>
>
> Currently in order to use auth with the Flink Connector you needs to do so through the {{setConfig}} method.
> It would be nice if similar to the client API we can add methods inside the builder pattern.
> Example:
> {code:java}
> builder.authentication(new AuthenticationToken(""))
> {code}
> We can do something similar for the connector instead of having to do:
> {code:java}
> PulsarSource.builder()
>     .setConfig(PulsarOptions.PULSAR_AUTH_PLUGIN_CLASS_NAME, "org.apache.pulsar.client.impl.auth.oauth2.AuthenticationOAuth2")
>     .setConfig(PulsarOptions.PULSAR_AUTH_PARAMS, "{"privateKey":"..."})
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)