0
我正在使用Grant進行OAuth2身份驗證。我提供了config.json中的所有參數:與Google授予OAuth2身份驗證問題
{
"server": {
"protocol": "https",
"host": "thooslo-com-shaunakde.c9.io"
},
"google":{
"authorize_url": "https://accounts.google.com/o/oauth2/auth",
"access_url": "https://accounts.google.com/o/oauth2/token",
"oauth": 2,
"custom_parameters": ["access_type"],
"scope_delimiter":" ",
"scope":["https://www.googleapis.com/auth/youtube","https://www.googleapis.com/auth/drive"],
"client_id":"39109025743-veaeooi4v9ooirabeseujn8u2ohjbqf7.apps.googleusercontent.com",
"client_secret":"DO8ozwoFqtP654jzi-wPQF10",
"callback": "/users"
}
}
但它仍拒絕發送所有參數。我得到一個「client_id」沒有發送錯誤。
我修改了庫打印出URL,這確實是這樣的:
Starting child process with 'node ./bin/www'
https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=https%3A%2F%2Fthooslo-com-shaunakde.c9.io%2Fconnect%2Fgoogle%2Fcallback&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fyoutube%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive
GET /connect/google 302 26.492 ms - 574
我還是設法得到的第一步工作,一旦被一些置換,但隨後未能在client_secret不找到。
有什麼我做錯了嗎?圖書館似乎不是馬車。
問題在這裏得到解決 - https://github.com/simov/grant/issues/18 – simo
@simo請選擇它作爲一個答案 – shaunakde