Google Oauh2验证无效参数

时间:2019-01-15 22:42:26

标签: google-oauth google-apps google-oauth2

从今天开始,我正尝试通过Google控制台提交验证申请。

我已经通过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."}]}

0 个答案:

没有答案