首页 文章

我应该使用什么范围(谷歌登录hybridauth / oauth)

提问于
浏览
3

我正在使用hybridauth Build 一个谷歌登录网站 .

我只想要一些基本信息,如电子邮件,用户ID和用户名,但我无法正确设置范围 .

它一直要求“有离线访问”

我在范围内尝试了这些url中的每一个:

"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 plus outh thing

"This app would like to: Have offline access" when access_type=online

1 回答

  • 0

    您链接的帖子中的几个答案指出 userinfo.profileuserinfo.email 范围已被弃用并计划很快删除,并且这与您看到的access_type问题有关 . 尝试仅使用 plus.meplus.login 范围,或您链接到的Google Developer文档中的其他未弃用范围之一 .

    如果您已经将应用程序授权到某些范围,并且正在请求更改该应用程序中使用的范围,则听起来也可能会出现此提示 . 您可能希望在http://plus.google.com/apps完全断开应用程序,看看是否有帮助 .

    最后,您可能希望显示您正在使用的代码,以查看我们是否可以帮助您在那里找到错误 .

相关问题