【问题标题】:Google OAuth migration: OAuth2 client type does not match OAuth1 consumer typeGoogle OAuth 迁移:OAuth2 客户端类型与 OAuth1 消费者类型不匹配
【发布时间】:2014-04-02 17:50:36
【问题描述】:

我有一些来自 Google 用户的现有 OAuth 1.0 令牌,并正在尝试将它们交换为 OAuth 2.0 令牌,如 here 所述。

/o/oauth2/token端点的请求返回以下错误响应:

{"error": "unauthorized_client",  "error_description" :"OAuth2 client type does not match OAuth1 consumer type."}

我的 OAuth2 密钥已注册为 Web 应用程序,因此 Google 必须将我的 OAuth1 密钥视为本机应用程序。 Google 文档页面指出,如果以下任一情况为真,则 OAuth1 密钥被视为本机应用程序:

  • 应用程序已设置其本机应用程序名称,或
  • 该应用程序是 Chrome 扩展程序。

我没有 Chrome 扩展程序,据我所知,从未设置过本机应用程序名称(尽管我找不到任何设置页面来检查这一点)。

是否还有其他原因会将 OAuth1 密钥视为本机应用程序?

【问题讨论】:

  • 你能在这里发布一些代码吗?目前没有足够的信息来帮助解决这个问题。
  • 嗨,我在 Google Auth 团队工作...现在正在调查这个问题。将在本周末之前用我的发现更新这篇文章

标签: google-oauth


【解决方案1】:

我们已对迁移实施进行了修改,本应修复此类故障。

我们也相应地更新了migration documentation

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-02-16
    • 2014-05-30
    • 2014-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-25
    相关资源
    最近更新 更多