【发布时间】:2017-02-15 12:54:52
【问题描述】:
我正在尝试设置 google play 服务登录。我有一个 android 客户端和一个 php 后端。 PHP 后端需要客户端服务器。
当我从谷歌开发者控制台下载客户端密钥 json 时,我得到一个如下所示的 json:
{"installed":{"client_id":"XXXXXX.apps.googleusercontent.com","project_id":"api-project-XXXXXX","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}}
这里的“秘密”在哪里? client_id 和 project_id 之间的链接?这是一个普通的客户端秘密 json 应该是什么样子的吗?目前该代码遵循 android PHP 示例并且无法正常工作,我怀疑该密码设置不正确。
我找对地方了吗? 谢谢!
【问题讨论】: