我一直想測試一下我的連接應用程序的OAuth的流量,但我得到了以下行爲:的Salesforce的OAuth 2.0用戶代理流程:INVALID_SESSION_ID
授權的應用程序:
https://login.salesforce.com/services/oauth2/authorize?response_type=token& client_id=theclientid&redirect_uri=https%3A%2F%2Fmysite.com
登錄到Salesforce,點擊 「RemoteAccessAuthorizationPage」
頁面重定向到mysite.com 「允許」。在網址中使用「的access_token」,進行以下捲曲呼叫
curl -X GET https://na1.salesforce.com/services/data/v28.0/sobjects/Account -H 'Authorization: Bearer thetoken' -H 'X-PrettyPrint:1'
響應:
{ "message" : "Session expired or invalid", "errorCode" : "INVALID_SESSION_ID" }
我也試過「的OAuth刷新令牌過程」與令牌我從獲得1.但是,也失敗:
{ error_description: "expired access/refresh token" error: "invalid_grant" }
我試圖將%21轉換爲!在URL編碼的access_token中,但沒有幫助。
任何人都可以建議我做錯了什麼?
Hi @dpk,salesforce.stackexchange.com上有一個特定於Salesforce的新stackexchange站點。快來加入社區! :) –
嗨拉爾夫。我會記住這一點,我甚至可以把它移到那邊。 – dpk
我們在Salesforce StackExchange上每天看到大約20-25個問題(與此處的4個左右相比)。所以你肯定會在那裏得到更多的關注:) –