INVALID_KEY消息试图通过Google+的登录按钮来验证 [英] INVALID_KEY message trying to authenticate through the Google+ Sign in Button

查看:191
本文介绍了INVALID_KEY消息试图通过Google+的登录按钮来验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想验证由伊恩·巴伯用户以下这一主旨。按钮要求的用户帐户,但从来没有得到,以显示授权对话框,而是退出消息ocurred内部错误。 logcat的说明这一点:

I am trying to authenticate the user following this gist by Ian Barber. The button asks for the user account, but it never gets to show the authorization dialog and instead exits with the message "An internal error ocurred". Logcat shows this:

W/GLSUser ( 4353): Status from wire: INVALID_KEY status: null
W/GLSUser ( 4353): Status from wire: INVALID_KEY status: null
E/GLSUser ( 4353): Empty consent data
I/GLSUser ( 4353): GLS error: INVALID_KEY icoloma@gmail.com oauth2:https://www.googleapis.com/auth/plus.login
W/GLSUser ( 4353): Status from wire: Unknown status: UNKNOWN

用于登录我的应用程序的证书是一样的,在我的谷歌API控制台页面配置,和包名也是相同的。

The certificate used to sign my app is the same configured at my Google API Console page, and the package name is also the same.

推荐答案

这发生在您的证书已在简单API访问部分,而不是客户端ID为安装的应用程序的补充。在项目的谷歌API控制台单击创建OAUTH2客户端ID(而不是创建新的Andr​​oid按键),选择Android的,介绍你的SHA1和包。

This happens when your certificate has been added in the "Simple API Access" section instead of "Client ID for installed applications". In the Google API console of your project click "Create an OAUTH2 client ID" (NOT "Create new Android Key"), select "Android" and introduce your SHA1 and package.

这篇关于INVALID_KEY消息试图通过Google+的登录按钮来验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆