'Issue when trying to register an app for consent screen in google oauth

I am trying to register my app for Oauth consent screen, so that I can create a OAuth client ID. I keep getting this validation error at end of the form, even though I have submitted everything correctly.

An error occurred while saving your app

And this error does not state which input in the form is invalid. Also in the network tab of development tools window, everytime I submit the request, I can see a POST request being initiated and it fails with following error.

{"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"}]}]}}.

Any suggestions on how to fix this is highly appreciated. I have contacted the google support about this issue as well, but as of now they're saying everything works on their end and clear cache and cookies but it doesn't work. I have attached here a capture of consent config wizard I'm using as well.

I have attached here a capture of consent config wizard I'm using as well.



Solution 1:[1]

Try adding your support email to Firebase console. Go to firebase console->settings->General->Support Email->Add Email. Now while creating oAuth consent screen add same email id developer contact information as well as support email. It worked for me.

Solution 2:[2]

Put the Project ID in App Name

Solution 3:[3]

What @Kalind said helped me to resolve the problem. So login to firebase console, chose the project you are trying to create an OAuth Consent too. And then click settings-> General-> Support Email-> Add Email from dropdown. Now when I go back to google cloud console under the Oauth consent screen, I can see that I have one registered to that project.

Solution 4:[4]

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".

enter image description here

Solution 5:[5]

I got the exact same error, probably an issue on their end :/

Solution 6:[6]

Thanks for reporting this everyone. I've also had the same problem for different apps and @Kalind suggestion fixes the problem. On Firebase project's settings there's a new field now called "Support email" where you can select your support email address. This will fix your issue like @Kalind and @Kasper said. I'm just adding a screenshot to make it more clear for those with the same problem. Thanks!

firebase support email field

Solution 7:[7]

For me there was an email in there already (owner of account email). I had to invite another email > accept invite > change email > save > then change back > then I could proceed with the OAuth Consent Screen.

To change the support email on the Firebase Console you go to: https://console.firebase.google.com/ > select Cog > Project Settings > General tab > Support Email

Solution 8:[8]

I reached this page is because of testing Google Login.
I faced this issue creating "OAuth consent screen".
But I didn't need this to create.
Just go to "Domain verification" page and "Add Domain".
There you may need to add 'txt record' in DNS Setting to prove you owned the domain.
After adding domain, go to "Credentials" page.
It is ready to choose the "Application type" like google guide
!!! pls enjoy !!!

Solution 9:[9]

I used the app Id as my App Name in the OAuth consent screen setup page.

Solution 10:[10]

If you are trying to use group email from gsuite in App consent/Firebase support, you must be the group owner, and do not need that group email address on any IAM role.

Solution 11:[11]

I believe the name of the application requesting access simply needs to be different from the name of the Google project.