0
我正在使用Square Connect,並且使用OAuth API時遇到問題。 (Square Connect OAuth API)使用https重定向url訪問被拒絕在Square Connect授權
當我在應用程序頁面設置https重定向url時,端點給我一個錯誤響應,但沒有顯示登錄頁面。如果我發送相同的請求設置本地主機(http),它工作正常。爲什麼我的訪問被拒絕?有什麼額外的事情我需要做的https重定向網址?
細則HTTPS重定向的URL(失敗)
SSL是自簽名證書,重定向網址爲https://{MY_SERVER}/callback
,和iptables停止。- 請求
https://squareup.com/oauth2/authorize?client_id={MY_APPLICATION_ID}&response_type=code&session=false&state=test
- 回調
https://{MY_SERVER}/callback?state=test&error=access_denied&error_description=Authorization+not+allowed&response_type=code
- 請求
細則HTTP重定向的URL(成功)
重定向URLhttp://localhost/callback
。- 請求
https://squareup.com/oauth2/authorize?client_id={MY_APPLICATION_ID}&response_type=code&session=false&state=test
- 回調
http://localhost/callback?state=test&code={MY_CODE}&response_type=code
- 請求
任何幫助將不勝感激!
Chris Killpack,有什麼方法可以與您溝通Square促銷店 –