我正在通过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>
在浏览器中收到以下错误消息:
错误:redirect_uri_mismatch&amp; 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/。这是用于重定向的网址吗?
Mules参考文档说要使用
oauthcallback作为路径。我正在使用带有sfdc连接器6.0.1的Anypoint studio。即使在使用相同的错误消息后,我也会收到它。
<sfdc:oauth-callback-config domain="localhost" localPort="8081" path="oauthcallback"/>
答案 0 :(得分: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