破碎的云端点使用clientId 292824132082.apps.googleusercontent.com进行身份验证

时间:2014-01-10 18:57:50

标签: java google-app-engine google-cloud-endpoints

我正在使用我的云端点应用程序,自从升级到1.8.8后,我的身份验证再次被破坏。使用API​​资源管理器和我的javascript客户端时都会发生此错误,两者都使用Oauth进行身份验证。

Auth失败,因为注入端点的用户为null。在日志中,我看到了:

[INFO] WARNING: getCurrentUser: clientId 292824132082.apps.googleusercontent.com not allowed

我在@Api注释中设置了客户端ID,如下所示

@Api(name = "myApi",
     version = "v2",
     namespace = @ApiNamespace(
        ownerDomain = "api.ryanharter.com",
        ownerName = "hashnote.ryanharter.com"),
     scopes = {"https://www.googleapis.com/auth/userinfo.email"},
     clientIds = {Constants.CLIENT_ID_WEB, Constants.CLIENT_ID_ANDROID,
         Constants.CLIENT_ID_ANDROID_DEBUG, Constants.CLIENT_ID_API_EXPLORER},
     audiences = {Constants.AUDIENCE}
)

我错过了什么吗?

0 个答案:

没有答案