【发布时间】:2014-02-26 01:57:59
【问题描述】:
我正在尝试使用 mvn jetty:run 命令设置 Google Glass Java Mirror API 快速入门项目。我按照 Google 开发者网站中的说明和此处给出的视频中的说明进行操作:https://www.youtube.com/watch?v=w0WxkIEPJeQ。我遵循这两个字母(或尽可能接近),无论我做什么,我始终从 localhost:8080 收到以下错误:
Error: invalid_client
The OAuth client was not found.
Request Details
cookie_policy_enforce=false
response_type=code
scope=https://www.googleapis.com/auth/glass.timeline https://www.googleapis.com/auth/glass.location https://www.googleapis.com/auth/userinfo.profile
access_type=offline
redirect_uri=http://localhost:8080/oauth2callback
approval_prompt=force
client_id=375625213438.apps.googleusercontent.com
client_secret=dhMaV4y5Mo7Ay5LGZ_utIBH_
我不知道是什么原因造成的;我完全没有 OAuth2 方面的经验,因此非常欢迎任何帮助。
【问题讨论】:
-
我尝试了您的客户端 ID,并得到错误:disabled_client。 OAuth 客户端已禁用。当我和我的客户一起尝试时,它奏效了。所以你的客户有问题。检查开发者控制台中的项目设置或注册另一个并重试。
标签: java maven oauth google-glass