Google 身份验证错误“500。这是一个错误”

Google Authentication error "500. That’s an error"

从大约 1 周前开始,当我尝试使用 Google 进行身份验证时,我一直从 accounts.google.com 那边得到 500. That’s an error

第一个请求到

https://accounts.google.com/o/oauth2/auth?scope=openid%20email%20https://adwords.google.com/api/adwords/%20https://www.googleapis.com/auth/drive%20https://spreadsheets.google.com/feeds%20https://docs.google.com/feeds&response_type=token&redirect_uri=https://<XXXXXX>/&state=<XXXX>2&client_id=<MY_CLIENT_NUMBER>.apps.googleusercontent.com&hd=

returns 200,然后第二次请求到

https://accounts.google.com/signin/oauth?hd&client_id=<app_id>.apps.googleusercontent.com&as=-XXXXXX&nosignup=1&destination=https://<my_app_uri>&approval_state=<somewhatrandomstate>&xsrfsig=<signature>

几乎总是以 500 失败。

我正在使用 Java Google API 客户端版本 1.22.0,我的应用程序部署在 AWS(区域 eu-central-1)上。我目前登录了多个 google 帐户,因此触发了帐户选择器。

任何想法可能是什么问题?在此之前,此身份验证流程在很长一段时间内都运行良好。

问题是 Google 端的行为发生了非常轻微的变化。主要处理 hd 参数。在此更改之前 hd 参数即使为空也被接受,但现在当它为空时通常以状态代码 500.

结束