AppEngine Java Google+登录缺少gplus_id

Ahm*_*eed 18 java ajax google-app-engine oauth-2.0 google-api-java-client

我在登录尝试,以G +与Java在谷歌AppEngine上的解释这里

在步骤8中,代码获得gPlusId如下

 String gPlusId = request.queryParams("gplus_id");
Run Code Online (Sandbox Code Playgroud)

并且此请求应来自步骤6中的ajax调用,该调用仅发送authResult['code']请求,即使authResult没有参数gplus_id

如何以及从何gplus_id而来?!

小智 1

您的请求得到授权了吗?如果是,那么您是否已通过以下链接检查是否为您的 GAE 应用程序启用了 Google+ API。

https://console.developers.google.com/project/693420044823/apiui/api/plus