我正在尝试使用 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>
我没有专门使用过 Power BI,但我可以判断问题可能是什么。
oAUthCallbackConfig
是您需要进行更改的地方。
https://localhost:8082/oauth/callback
,此参数可以是 oauth/callback
。 (请注意,您需要考虑您可能在 http 侦听器中配置的基本路径)/oauth/authorize
的内容。然后,当您尝试 https://localhost:8082/oauth/authorize
时,Mule 应用程序将触发 oAuth dance,并将您重定向到其他所有内容均已正确设置的登录屏幕。你曾经让这个工作过吗?遇到同样的问题