Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google plus 谷歌问题+;通过OAuth2和多重登录升级_Google Plus_Google Oauth - Fatal编程技术网

Google plus 谷歌问题+;通过OAuth2和多重登录升级

Google plus 谷歌问题+;通过OAuth2和多重登录升级,google-plus,google-oauth,Google Plus,Google Oauth,我正在使用OAuth 2.0和plus.loginscope. 为了处理多个登录,我想使用login\u hint参数。请求看起来像 https://accounts.google.com/o/oauth2/auth? redirect_uri=https://developers.google.com/oauthplayground& response_type=code& client_id=407408718192.apps.googleusercontent.

我正在使用OAuth 2.0和
plus.login
scope.
为了处理多个登录,我想使用
login\u hint
参数。请求看起来像

https://accounts.google.com/o/oauth2/auth?
  redirect_uri=https://developers.google.com/oauthplayground&
  response_type=code&
  client_id=407408718192.apps.googleusercontent.com&
  scope=https://www.googleapis.com/auth/plus.login&
  login_hint=user@gmail.com
它在大多数情况下都有效,但我在一个非常特殊的情况下遇到了一个问题:
如果
login\u hint
指定的帐户

  • 当前已登录,但
  • 不是主帐户,以及
  • 还没有升级到谷歌+
用户按预期被重定向到Google+升级表单,但在短暂的瞬间,再次重定向到
错误400未经授权的请求
页面

这是预期的行为吗


注:
问题似乎是用户被重定向到
https://plus.google.com/up?continue=...

而不是

https://plus.google.com/u/$i/up?continue=…

您已解决此问题吗?我找到了解决此问题的方法并继续。你也有同样的问题吗?我认为,它的出现是因为X-Frame-Options阻止了它。