【问题标题】:GoogleAuthException: Unknown (android)when specifying correct clientIDGoogleAuthException:指定正确的客户端ID时未知(android)
【发布时间】:2014-03-07 20:30:54
【问题描述】:

我正在使用 GoogleAuthUtil 和 PlusClient。

当我将我的客户 ID 指定为:

NNNNNNNNNNN-HHHHHHHHHHHHHHHHHH.apps.googleusercontent.com

它给了我 GoogleAuthException: Unknown 作为错误。 这是在 Google API 控制台中指定的 clientId。

当我将我的客户 ID 指定为:

NNNNNNNNNNN.apps.googleusercontent.com

有效吗?但这不是为我的 Android 应用指定的 clientId? 当我尝试将其用于 OAuth 时,服务器无法使用此 clientId 登录......所以实际上......我该如何解决这样的困境?

【问题讨论】:

    标签: android oauth-2.0 google-signin


    【解决方案1】:

    通过使用 web id 而不是总是给我 Auth Exceptions 的 android id 来解决它。希望这可以帮助其他人解决这个奇怪的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-10-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-07
      • 1970-01-01
      • 2018-09-15
      • 1970-01-01
      相关资源
      最近更新 更多