Google API Manager OAuth consent screen configuration Error

爷,独闯天下 提交于 2019-12-01 05:36:54

So here's how I fixed this. Let's go on a picture adventure story to fix this little pesky Google-total-fudge-up.

I, too, created my account a long while ago as @googlemail.com but in the drop down only @gmail.com was showing:

I tried @Peer's answer and added myself to the project again with my full @googlemail.com email. I did this via this URL:

https://console.cloud.google.com/projectselector/permissions/projectpermissions

(I include the link because I found no way to navigate to this from the too-clean-for-actual-links Google Console)

However, even after accepting the invitation, only my @gmail email appeared in the drop down list on the consent configuration screen, the @googlemail.com was still regarded as "Waiting for response" and, best of all, it still didn't save:

So I did the following:

  • Opened up Fiddler
  • Hit the save button on the consent form to enjoy the error one last time (and also record it in Fiddler)
  • Locate the bad request in Fiddler (nice and red for us):

  • Enable editing on the bad request:

  • Select the Inspectors tab and edit the supportEmail field to change my email address to @googlemail.com:

  • Right click on the bad request now it has been edited and navigate to Replay -> Reissue Requests:

The new request worked a charm, and now when I reloaded my consent screen the settings had saved, but even better the drop down had the full @googlemail.com option:

So I selected my @googlemail.com address and the save button worked happily ever after:

(Although apparently I am still waiting for my own response...)

I fixed the problem by switching the "@googlemail.com" address to "@gmail.com" via Gmail-settings ( https://mail.google.com/mail/#settings/accounts): Described here: https://support.google.com/mail/answer/159001?hl=en

After the change, the problem in the Google developers console diappeared.

Or with curl and Chrome instead of Fiddler:

  • log your network traffic in Chrome (more tools - developer tools - network)
  • try again to save the OAuth consent screen (in the same tab)
  • search the POST request with the wrong supportEmail (xyz@gmail.com)
  • use the context menu on the POST request entry in the list and select "Copy as cURL"
  • paste in a terminal and change the supportEmail (to xyz@googlemail.com)

At least that worked for me.

My E-Mail address was the problem. I've created the account a long time ago as xxx@googlemail.com account and could only select the xxx@gmail.com version. The support told me to add a second account to the project with another E-Mail address. Configured the consent screen and worked like a charm.

My URI was the problem. But it still gave the same 400 error at the top. I had an underscore in it, but it was an internal DNS doing the routing so it didn't care. Google did.

E.g.

test_underscore.something.com #didn't work being added (it didn't exist) test-hyphen.something.com` did work (it didn't exist)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!