我正在嘗試將超級用戶與我的網絡應用程序按照他們的oauth指南進行集成。我現在有一個從我的網站到我的服務器的重定向,在那裏我向https://login.uber.com/oauth/v2/authorize
發出一個請求,並得到一個302.但是,我從來沒有收到過來自美國的access_token
和refresh_token
。我無法獲得來自超級用戶的回覆
我有一個服務器運行在https://mobilius-app.herokuapp.com和前端在http://mobilius-website.herokuapp.com。我目前將請求發送到https://login.uber.com/oauth/v2/authorize
與有效載荷的
{
'client_secret' => UBER_CLIENT_SECRET,
'client_id' => UBER_CLIENT_ID,
'grant_type' => 'authorization_code',
'redirect_uri' => `https://mobilius-app.herokuapp.com/api/uber_tokens`,
'code' => [the auth code]
}
https://mobilius-app.herokuapp.com/api/uber_tokens
永遠不會從尤伯杯與身份驗證令牌的響應和刷新令牌,但是。任何幫助深表感謝!