首页 > 解决方案 > Google Oauh2 验证无效参数

问题描述

我正在尝试通过谷歌控制台提交验证申请,因为它从今天开始开放。

我已经通过 Goofle Search Console 验证了有问题的域,我确保所有链接都已设置(政策、使用条款等),并在表格中填写了有关需要验证的范围的信息和说明。

当我提交表单时,我没有收到它已提交的响应,但在开发人员工具中来自网络的响应我看到它是 400 HTTP 状态,并且我看到以下错误消息:

{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT"
  }
}

我已经仔细检查了我的步骤,但仍然无法解决这个问题,您可以提供的任何信息都会很棒。

添加请求:

https://clientauthconfig.clients6.google.com/v1/brands/ID/submitReview?alt=json&key=AIzaSysnipsnip0DjtiCwWBwQ1djDy741g

上面的请求是 PUT,这里是正文内容

{"brandId":"ID","scopeRationale":"","additionalInfo":"","contactEmail":"contactmeialaddress@gmail.com","pendingScopes":["https://mail.google.com/","https://www.googleapis.com/auth/gmail.modify","https://www.googleapis.com/auth/gmail.compose","https://www.googleapis.com/auth/gmail.insert","https://www.googleapis.com/auth/gmail.readonly","https://www.googleapis.com/auth/contacts.readonly"],"category":[1,3,5],"scopeDetails":[{"apiGroup":1,"pendingScopes":["https://mail.google.com/","https://www.googleapis.com/auth/gmail.modify","https://www.googleapis.com/auth/gmail.compose","https://www.googleapis.com/auth/gmail.insert","https://www.googleapis.com/auth/gmail.readonly"],"scopeRationale":"Why we need access to this scope."},{"apiGroup":2,"pendingScopes":["https://www.googleapis.com/auth/contacts.readonly"],"scopeRationale":"Additional info why we need this."}]}

标签: google-appsgoogle-oauth

解决方案


推荐阅读