第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

OAuth 2之后如何使用Basecamp3 API獲取令牌?

OAuth 2之后如何使用Basecamp3 API獲取令牌?

翻閱古今 2021-03-30 11:15:01
我正在使用帶有身份驗(yàn)證OAuth2的Basecamp3 API構(gòu)建Javascript應(yīng)用程序。我首先在https://launchpad.37signals.com/integrations注冊(cè)應(yīng)用程序,以便提供我的信息并讓我&配置我的OAuth 2庫。redirect_uriclient_idclient_secret當(dāng)我啟動(dòng)我的應(yīng)用程序時(shí),一切似乎正常。我能夠獲得Basecamp登錄名,并可以訪問我的Basecamp 3數(shù)據(jù)。但是,配置完成后,窗口關(guān)閉,我無權(quán)訪問我的應(yīng)用程序。我檢查了日志,發(fā)現(xiàn)錯(cuò)誤400:error: 2019-03-27 02:59:55.5955 Error when requesting api key StatusCodeError: 400 - {"timestamp":1553716795279,"status":400,"error":"Bad Request","message":"Bad request","path":"/thirdparty/proxy/oauth2/requestTokens/"}它看起來像我不能讓一個(gè)道理,所以我改變了實(shí)際鏈接https://launchpad.37signals.com/authorization/token到https://launchpad.37signals.com/authorization/token?type=web_server像我一樣第一個(gè)鏈接的授權(quán)(解釋這里)但我仍然收到錯(cuò)誤,但錯(cuò)誤500:error: 2019-03-27 02:56:16.5616 Error when requesting api key StatusCodeError: 500 - {"apierror":{"status":"INTERNAL_SERVER_ERROR","timestamp":"27-03-2019 07:56:16","message":"Unexpected error","debugMessage":"could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.DataException: could not execute statement","errors":null}}我什至嘗試將協(xié)議更改https為http。我仍然收到錯(cuò)誤500:error: 2019-03-27 03:05:15.515 Error when requesting api key StatusCodeError: 500 - {"timestamp":1553717115170,"status":500,"error":"Internal Server Error","message":"Error requesting from http://launchpad.37signals.com/authorization/token?client_id=1111111111111111111111111&client_secret=22222222222222222222222&code=abcdef&redirect_uri=http%3A%2F%2Flocalhost%2Foauth%2Fredirect&grant_type=authorization_code; got HTTP response HTTP/1.1 307 Temporary Redirect","path":"/thirdparty/proxy/oauth2/requestTokens/"}我試圖以多種方式更改請(qǐng)求,但沒有用。我試圖通過Postman獲得令牌(以與我的應(yīng)用相同的方式),但我做不到。您知道此錯(cuò)誤來自何處嗎?
查看完整描述

1 回答

?
紅糖糍粑

TA貢獻(xiàn)1815條經(jīng)驗(yàn) 獲得超6個(gè)贊

我找到了解決方案。問題出curl在我如何在命令行中使用以創(chuàng)建POST請(qǐng)求。我將元素放在url中而不是使用--dataoption。


查看完整回答
反對(duì) 回復(fù) 2021-04-08
  • 1 回答
  • 0 關(guān)注
  • 195 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)