4
我正在做服务器端oauth,遵循this指南。没有在YouTube上获得刷新令牌OAuth
我顺利地完成了OAuth的,但我没有收到refresh_token
在交易授权代码更新和访问令牌步:
请求:
POST /o/oauth2/token HTTP/1.1
HOST: accounts.google.com
content-type: application/x-www-form-urlencoded
content-length: 260
code=4/KEOuzih9jwfnHj7Rl1DeqHhcJF0goKPwtwR5IQ09ieg&client_id=****.apps.googleusercontent.com&client_secret=****&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2FsSignIn.html&grant_type=authorization_code
响应:
{
"access_token" : "****",
"expires_in" : 3580,
"token_type" : "Bearer"
}
我错过了什么吗?
感谢阿布舍克!我离线传递了access_type,但我没有启用提示同意。现在它返回刷新标记。 – jremi