我正在使用新的GoogleConnect,并将范围设置为
Login gc = GoogleConnect.getInstance();
gc.setScope("https://www.googleapis.com/auth/plus.profile.emails.read https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/drive.file");
...
gc.doLogin();
但是,生成并签入访问令牌时 https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=(accesstoken) ,它显示
"scope": "https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.profile"
它与最近的更新或新的构建提示有关吗? 我完全迷失在这里。这是一个Android版本。 感谢。
编辑添加gc.doLogin()代码,以澄清在生成访问令牌后我不想尝试设置范围。
答案 0 :(得分:0)
此处的问题相同,setScope仅适用于模拟器
content: '';
我的范围(供参考):
"scope": "https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.profile",