Skip to content

kafkaconnector.https.CamelHttpsSinkConnector oauth2 scope is missing #1647

Open
@chethan-bs

Description

@chethan-bs

i am using https.CamelHttpsSinkConnector sink connector with Oauth2 Client and i see scope is not exists on the code in order to use oauth2TokenEndpoint /oauth2/v2.0/token from azure. below is the config where i need oauth2Scope to be defined.

    "connector.class": "org.apache.camel.kafkaconnector.https.CamelHttpsSinkConnector",
    "camel.sink.endpoint.okStatusCodeRange": "200,201",
    "topics": "msk.databook.test.openlineage.topic.internal.any.v1",

    "camel.sink.endpoint.httpMethod": "POST",
    "camel.sink.path.httpUri": "<url>",
    "camel.sink.endpoint.oauth2ClientId": "<client_id>",
    "camel.sink.endpoint.oauth2ClientSecret": "<client_secret>",
    "camel.sink.endpoint.oauth2TokenEndpoint": "https://login.microsoftonline.com/<sub>/oauth2/v2.0/token",
    **"camel.sink.endpoint.oauth2Scope": "api://<client_id>/.default",**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions