【发布时间】: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"/>
【问题讨论】:
标签: oauth-2.0 salesforce mule