相关疑难解决方法(0)

使用新的Google+登录功能的Appengine Cloud端点

新的Google +登录apis如何适合对Cloud Endpoints进行经过身份验证的调用.要将OAuth与端点结合使用,应用必须至少请求" https://www.googleapis.com/auth/userinfo.email "范围的权限.是否会使用Google+登录按钮授予此范围?或者我将不得不要求我的用户再次获得许可?

google-app-engine oauth-2.0 google-plus google-cloud-endpoints

6
推荐指数
1
解决办法
1612
查看次数

关于Appengine的Oauth与Google Play服务

我在Android上使用Google Play服务来访问Google Apis和Google云端点.我还可以使用Google Play服务中的令牌访问appengine User api.这可能吗?OAuth的这个链接有一些示例代码,但有点模糊.我可以在标题中传递oauth令牌并获取下面代码的用户吗?

    User user = null;
    try {
        OAuthService oauth = OAuthServiceFactory.getOAuthService();
        user = oauth.getCurrentUser();

    } catch (OAuthRequestException e) {
        // The consumer made an invalid OAuth request, used an access token that was
        // revoked, or did not provide OAuth information.
        // ...
    }
Run Code Online (Sandbox Code Playgroud)

google-app-engine android oauth-2.0 google-cloud-endpoints google-play-services

3
推荐指数
1
解决办法
1222
查看次数