我正在使用新的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()代码,以澄清我不是在生成访问令牌后尝试设置范围 .
1 回答
同样的问题,setScope只能在模拟器上运行
我的范围(供参考):