Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 403 Restricted Client with Google Signin in Flutter

I've setup firebase_auth and google_signin about 6 times, but in my latest app I must have forgotten a step.

firebase_auth: ^0.11.1 google_sign_in: ^4.0.1+3

When the Google Login page should appear I instead get a webpage that says 403 Error Restricted Client. Further down it says This app is not yet configured to make OAuth requests.

1) I've update the GoogleService-Info.plist file.

2) I've added the section CFBundleURLTypes section to Info.plist file.

3) I've enabled Google auth in my Firebase project.

What did I forget?

like image 497
dakamojo Avatar asked May 18 '19 05:05

dakamojo


Video Answer


3 Answers

In my case I forgot to set support e-mail address in Google Developers Console > API and service > certificate > OAuth consent screen link and this option also in your Firebase project setting. After set up everything is working.

like image 102
flutroid Avatar answered Oct 17 '22 15:10

flutroid


I set the support e-mail address and the LOGO in Google :

Developers Console > API and service > Credential > Oauth Consent Screen.

After this set up all is working.

like image 22
mmswd Avatar answered Oct 17 '22 16:10

mmswd


To fix a similar issue I had to add the email I am logged in with to google as a test user:

  1. Go to https://console.developers.google.com/
  2. On the top right ensure that your using the correct developer account
  3. On the top left next to the words "Google Cloud Platform" ensure that you are on the correct project
  4. In the search bar, look for "oauth consent screen" and click on it
  5. Created a consent screen if you didn't before now
  6. Under "Test users" click "+ADD USERS"
  7. Add the email account(s) you will be testing with and save.

It should work now!

like image 37
Waqleh Avatar answered Oct 17 '22 14:10

Waqleh