firecmsco / firecms

Awesome Firebase/Firestore-based CMS. The missing admin panel for your Firebase project!
https://firecms.co
Other
1.15k stars 188 forks source link

Google Sign in Error 400: redirect_uri_mismatch #116

Closed dhazeley closed 3 years ago

dhazeley commented 3 years ago

After deploying FireCMS through firebase hosting and enabling Google Provider in Firebase Authentication, I get the following error upon login:

Authorization Error Error 400: redirect_uri_mismatch You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy.

I don't see any additional options in the Firebase console or FIreCMS to configure an OAuth redirect url

fgatti675 commented 3 years ago

Hi @dhazeley sorry for the late reply, I was on vacation. Could you solve this? I suspect this is related to the config of your Authorized domains. If you are deploying the app to a different domain you need to add it there.

dhazeley commented 3 years ago

@fgatti675 No problem.

I could not get it solved and I do believe I have firebase set up correctly. Assuming my domain name is example.com:

fgatti675 commented 3 years ago

I think this error is due to some specific config in your setup Maybe you can check https://console.cloud.google.com/apis/credentials/consent?project=YOUR_PROJECT and see if everything is in order?

dhazeley commented 3 years ago

After going through all the necessary steps in the Edit App page of the Oauth consent screen, and completing the Domain verification, I am still encountering the same problem.

dhazeley commented 3 years ago

There was an error with my firebase config. Sorry I didn't catch that earlier.