使用 OAUTH 配置 Mule Microsoft Power BI 连接器

问题描述 投票:0回答:2

我正在尝试使用 Mule Power BI 连接器连接到 Microsoft Power BI,但连接器配置相对于 OAuth 来说非常混乱。有人用 Mule 成功连接 Power BI 吗?这是我的配置:

    <power-bi-rest:config name="Power_Bi_Rest_Connector_Config" doc:name="Power Bi Rest Connector Config" doc:id="d9dbee0f-50fe-46ca-977e-2b3c6ce1ff3b" >
        <power-bi-rest:oauth2-authorization-code-connection >
            <power-bi-rest:oauth-authorization-code consumerKey="xxx" consumerSecret="yyy" authorizationUrl="https://login.microsoftonline.com/69f2560d-6d2a-4768-989e-d35ed85aeab2/oauth2/v2.0/authorize" accessTokenUrl="https://login.microsoftonline.com/69f2560d-6d2a-4768-989e-d35ed85aeab2/oauth2/v2.0/token" scopes="api://96eb9d1c-6dfb-4acf-9950-d4af04038693/Mule"/>
            <power-bi-rest:oauth-callback-config listenerConfig="HTTP_Listener_config" callbackPath="https://login.microsoftonline.com/common/oauth2/nativeclient" authorizePath="https://login.microsoftonline.com/common/oauth2/nativeclient" />
        </power-bi-rest:oauth2-authorization-code-connection>
    </power-bi-rest:config>

oauth-2.0 powerbi mulesoft mule4 mule-connector
2个回答
1
投票

我没有专门使用过 Power BI,但我可以判断问题可能是什么。

oAUthCallbackConfig
是您需要进行更改的地方。

  1. 外部回调 URL:在您的 MS 帐户中配置 OAuth 凭据时,您必须提供一个指向您的 Mule 应用程序的回调 URL。您需要将该 URL 放在这里。
  2. 回调路径:这里你需要提到 Mule App 应该在哪里收到带有授权码的回调。例如,您已将外部路径配置为
    https://localhost:8082/oauth/callback
    ,此参数可以是
    oauth/callback
    。 (请注意,您需要考虑您可能在 http 侦听器中配置的基本路径)
  3. 授权路径:这不应该是指向 Microsoft api 的 URL,但它是您将用来点击 mule 应用程序以启动 oAuth 舞蹈的路径。您可以输入类似
    /oauth/authorize
    的内容。然后,当您尝试
    https://localhost:8082/oauth/authorize
    时,Mule 应用程序将触发 oAuth dance,并将您重定向到其他所有内容均已正确设置的登录屏幕。

0
投票

你曾经让这个工作过吗?遇到同样的问题

© www.soinside.com 2019 - 2024. All rights reserved.