这个回调地址一定要正确,授权网址填 https://test.com/index.html https://test.com/private https://test.com/terms test.com
redirect_uri: https://test.com/google-login
clientid: 78********-*************************.apps.google**********.com
code注意下:有的浏览器会把/转义成%2F
code : 4/0A***************************************
client_secret: qD****************pt
refresh_token: **//************************************************
{
"access_token": "********************************",
"expires_in": 3599,
"refresh_token": "****************************************",
"scope": "**********************",
"token_type": "Bearer",
"id_token": *******************************************"
}
请求code(之前的谷歌账号网页不要关闭)get模式
https://accounts.google.com/o/oauth2/auth?access_type=offli