问题
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?
回答1:
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 then everything is working.
回答2:
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.
回答3:
Had a similar problem with an angular project. The solution was indeed to set a support email address in the firebase console project settings under the general tab.
回答4:
This is crazy, it didn't work even after I setting support email. But once I uploaded the logo image, it works.
Go to the link showing in error page, and set both logo and email.
来源:https://stackoverflow.com/questions/56196172/error-403-restricted-client-with-google-signin-in-flutter