【问题标题】:Mule SFDC connector: redirect_uri_mismatch&error_description=redirect_uri must match configurationMule SFDC 连接器:redirect_uri_mismatch&error_description=redirect_uri 必须匹配配置
【发布时间】:2015-07-04 09:25:08
【问题描述】:

我正在通过 oauth 使用 mule 连接器连接到 SFDC,尝试授权但收到以下错误消息。

<flow name="sfdcFlow1" doc:name="sfdcFlow1">
    <http:inbound-endpoint exchange-pattern="request-response" host="${hostname}" port="${port}" path="sfdc" doc:name="HTTP"/>
    <sfdc:authorize config-ref="Salesforce__OAuth_v2_0" display="POPUP" 
    accessTokenUrl="https://na1.salesforce.com/services/oauth2/token" 
    authorizationUrl="https://na1.salesforce.com/services/oauth2/authorize"
    doc:name="Salesforce"/>
</flow>

在浏览器中收到以下错误消息:

error:redirect_uri_mismatch&error_description=redirect_uri 必须匹配配置

什么是重定向或回调网址?我是否需要另一个流和 http 请求? 我做了这个但没有用:

<http:inbound-endpoint exchange-pattern="request-response" host="${hostname}" port="${port}" path="callback" doc:name="HTTP"/>
    <logger message="===callback====" level="INFO" doc:name="Logger"/>
</flow>

编辑: 我有一个来自 sfdc 的网址:https://cs17.salesforce.com/。这是用于重定向的 url 吗?

Mules 参考文档说要使用

oauthcallback 作为路径。我正在使用带有 sfdc 连接器 6.0.1 的 Anypoint Studio。即使在使用相同的错误消息后,我也会收到它。

<sfdc:oauth-callback-config  domain="localhost" localPort="8081"  path="oauthcallback"/>

Mulesoft ref docs

Reference -1

【问题讨论】:

    标签: oauth-2.0 salesforce mule


    【解决方案1】:

    回调 URL 是 Salesforce 在成功验证后重定向的位置。我没有将它与 Salesforce 一起使用,但我已经与其他云连接器一起使用过,您可以参考我的一些幻灯片共享以了解详细信息。请尝试使用这些链接,如果您仍有任何问题,请告诉我。

    http://www.slideshare.net/rupeshkrsinha/integration-with-dropbox-using-mule-esb

    http://www.slideshare.net/rupeshkrsinha/integrating-with-linkedin-using-mule-esb-linkedin-connector

    【讨论】:

    猜你喜欢
    • 2014-10-21
    • 2022-09-23
    • 1970-01-01
    • 1970-01-01
    • 2019-03-15
    • 1970-01-01
    • 2012-09-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多