如何在OAuth 2.0中“完成注册”?

时间:2019-03-30 18:00:26

标签: oauth-2.0 google-apis-explorer

我正在尝试遵循以下指南:https://gaute.app/dev-blog/gpgs-hide-player,以便从我的游戏中删除被黑的排行榜条目。我已经成功地完成了每个步骤,但是,在步骤9“输入GET请求https://www.googleapis.com/games/v1/leaderboards/leaderboardId/scores/PUBLIC?maxResults=10&timeSpan=all_time并使用从Google Play控制台步骤5获得的ID更改LeaderboardId”,在OAuth 2.0 Playground下,我收到了跟随错误

HTTP/1.1 401 Unauthorized
Content-length: 237
X-xss-protection: 1; mode=block
X-content-type-options: nosniff
Transfer-encoding: chunked
Expires: Sat, 30 Mar 2019 18:33:08 GMT
Vary: Origin, X-Origin
Server: GSE
-content-encoding: gzip
Cache-control: private, max-age=0
Date: Sat, 30 Mar 2019 18:33:08 GMT
X-frame-options: SAMEORIGIN
Alt-svc: quic=":443"; ma=2592000; v="46,44,43,39"
Content-type: application/json; charset=UTF-8
Www-authenticate: Bearer realm="https://accounts.google.com/", error=invalid_token

{
  "error": {
    "code": 401, 
    "message": "User has not completed registration.", 
    "errors": [
      {
        "domain": "global", 
        "message": "User has not completed registration.", 
        "reason": "UserRegistrationIncomplete"
      }
    ]
  }
}

有人知道他们指的是哪个注册吗?还是在这种情况下如何进行?

0 个答案:

没有答案