我正在用hybridauth建立一个网站。
我只是想要一些基本的信息,如电子邮件,用户名和用户名,但我不能设置正确的范围。
它一直请求"have offline access"
我尝试了范围内的每个url:
- https://www.googleapis.com/auth/plus.me
- https://www.googleapis.com/auth/plus.login
- https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
"Google" => array ( "enabled" => true, "keys" => array ( "id" => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "secret" => "xxxxxxxxxxxxxxxxxxxxxxxxx"), "scope" => "https://www.googleapis.com/auth/plus.me" //https://developers.google.com/+/api/latest/people/get ),
这两篇文章我都看了,但还是看不懂
google + south thing
"这个应用程序想:有离线访问"当access_type =在线
你所链接的帖子中的几个答案指出,userinfo.profile
和userinfo.email
作用域已被弃用,并计划很快删除,这与你所看到的access_type问题有关。尝试只使用plus.me
或plus.login
作用域,或者您链接到的Google Developer文档中其他未弃用的作用域之一。
如果你已经授权了应用程序的某些作用域,并且正在请求更改该应用程序中使用的作用域,则可能会出现此提示。您可能希望在http://plus.google.com/apps上完全断开应用程序,看看是否有帮助。
最后,您可能希望显示您正在使用的代码,看看我们是否可以帮助您找到错误。