尝试在 google oauth 中为同意屏幕注册应用程序时出现问题

v1s*_*hva 12 google-openid google-oauth google-cloud-platform

我正在尝试为 Oauth 同意屏幕注册我的应用程序,以便我可以创建 OAuth 客户端 ID。即使我已正确提交所有内容,我仍然在表单末尾收到此验证错误。

保存您的应用程序时出错

并且此错误未说明表单中的哪个输入无效。同样在开发工具窗口的网络选项卡中,每次我提交请求时,我都可以看到正在发起 POST 请求,但失败并显示以下错误。

{"error":{"code":3,"message":"The request failed because one of the field of the resource is invalid.","details":[{"@type":"type.googleapis.com/google.rpc.PreconditionFailure","violations":[{"type":"client_auth_config","subject":"?error_code=9&error_field_name=UpdateBrandWithMaskRequest.brand_id&error_field_value=0"}]}]}}.

非常感谢有关如何解决此问题的任何建议。我也就这个问题联系了谷歌支持,但截至目前,他们说一切正常,清除缓存和 cookie,但它不起作用。我在此处附上了我正在使用的同意配置向导的捕获。

我在此处附上了我正在使用的同意配置向导的捕获。

小智 26

将项目 ID 放在 App Name 中

  • 这是有效的,这似乎是谷歌方面的一个错误。 (5认同)
  • 这是我很长一段时间以来见过的最可悲的错误。不仅如此,现在已经是 21 年 11 月(两年半后)了,这仍然是一个问题,而且完全没有迹象表明问题是什么。谢谢你的提示 (5认同)
  • 截至 2023 年 6 月,该错误仍未修复 -_- 也许他们正忙于更新吟游诗人 AI -_- (4认同)
  • 奇怪的是它确实有效。谢谢。 (3认同)

小智 10

尝试将您的支持电子邮件添加到 Firebase 控制台。转到 firebase 控制台->设置->常规->支持电子邮件->添加电子邮件。现在,在创建 oAuth 同意屏幕时,添加相同的电子邮件 ID 开发人员联系信息以及支持电子邮件。它对我有用。


zr0*_*ty7 8

To expand on the top answer, there are numerous underlying reasons why this step of the app registration would fail. In the case where the application name is not valid (fails any of the checks that Google Cloud Platform enforces), then setting the application name to the project ID is guaranteed to fix the problem, as the project ID will always happen to be a valid application name.

It may be worth digging into the underlying validation error, which can be achieved by inspecting the network request that is sent upon submitting the form. In the "Network" tab of the Developer Tools, select the POST request that is captured after clicking the "SAVE AND CONTINUE" button. The "Response" tab (shown below for my case) should display an error object with a more descriptive message.

In my case, it seems that the application name was deemed abusive:

The request has been classified as abusive and was not allowed to proceed.

which I suspect is because it contains the word "Google".

在此输入图像描述

  • 即使对于“邮件”一词也会发生同样的情况 (2认同)

Muh*_*qas 7

我遇到了同样的问题,这是因为我在应用程序名称中使用了“Google”。我删除了它,它对我有用。