English 中文(简体)
为什么Salesforce OAuth2将我从一例纳3转至另一例9
原标题:Why does Salesforce OAuth2 redirect me from one instance na3 for ex to another na9

I am trying to build a web app that lets the customer add demo data to any Salesforce instance. My demo builder uses OAuth 2 Authorization Code Grant.

I am trying to get the switch instance portion working. However once the user connects to one instance

GET /services/oauth2/authorize?response_type=code&client_id=blabla.UKP&redirect_uri=https%3A%2F%2Fsfblademo.bla.com%2Foauth%2Fcallback HTTP/1.1 Host: na9.salesforce.com Connection: keep-alive User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.12 Safari/535.2 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: cookie_bla; disco=5:00D50000000Ii39:00550000001ifEp:0|; autocomplete=1; inst=APP5

It redirects to the previous instance. Seems like its reading cookies and redirecting

HTTP/1.1 302 Found Server: Location: https://na3.salesforce.com/setup/secur/RemoteAccessAuthorizationPage.apexp?source=blablabla Content-Type: text/html Content-Length: 525 Date: Fri, 16 Sep 2011 21:46:58 GMT

The URL has moved here

Is there a way to sign out or clear the cookies salesforce has. I am not running my app on salesforce.

感谢!

问题回答

标语: 标语:ttt = 工作,因为只有这样,才会使安普森会议无效,而不是在“密码”上储存在浏览器表上。 不用说现在建议的是,但为了表明,在上届会议上,你需要将终端用户重新引导到<代码>/secur/logout.jsp上instance_url。 为使最终用户具有透明度,你可以将其装上隐藏的机体,如:

<iframe src= https://{instance_url}/secur/logout.jsp width= 0 height= 0 style= display:none; ></iframe>

在转向其他场合之前,您可尝试如《世界展望指南》所描述的那样:

这有望使上届会议失效。





相关问题
Salesforce - Populate text are from drop down selection

I have a picklist with three values and a text area that has three values as well, but I would like to correlate one value from the picklist with one value of the text area. Any thoughts as on how I ...

Setting Timeout value for Salesforce Web Service/API

The API for Salesforce is a web service, you set it up by downloading a WSDL file from Salesforce and adding the WSDL to your .NET project. But I can t find anywhere to set the Timeout value. ...

Salesforce Custom Objects

Hi I am trying to create a Custom Object in Salesforce.com Developer Edition, because I would then like to use this Custom Object in a New Custom Tab say "Properties". Properties tab will contain ...

热门标签