Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 314
v1shva Avatar asked Sep 18 '20 02:09

v1shva


People also ask

How do I set the Consent screen in OAuth Google?

Configure OAuth consent & register your appIn the Google Cloud console, go to the OAuth consent screen. Select the user type for your app, then click Create. Complete the app registration form, then click Save and Continue.

How do I register with Google OAuth?

Go to the Google API Console OAuth consent screen page. Add required information like a product name and support email address. Click Add Scope. On the dialog that appears, select the scopes your project uses.


2 Answers

Put the Project ID in App Name

like image 143
Ahmed Abo 6 Avatar answered Oct 05 '22 23:10

Ahmed Abo 6


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.

like image 27
Kalind Avatar answered Oct 05 '22 23:10

Kalind