Cannot log on via Google due to error

When I want to sign up to a company specific Squidex page using Google log on, I get an error:

Error 400: redirect_uri_mismatch

You cannot logon in the app, as this does not meet the Google policy for OAuth 2.0 policy.

I have 2 step verification on google, where is the error? Also i have an account on Squidex.io where I can logon with google, then why can I not sign up for a company specific page?

Hope that you can help.

Thanks.
Lars Oostveen

Hi Lars,

I cannot reproduce it. Are you talking about cloud.squidex.io? I am logged in with sebastian@squidex.io.

Sebastian

Hi Sebastian,

I am trying to log on to https://squidex.camptoo.com/, here I encounter the issue.

Thanks.

So it is your own deployment? Which version do you use and what is your redirect uri that you have configured in your Google app settings?

Btw: This is what the support template is for.

By default Squidex enables Google authentication for development purposes. It is turned off in the docker-compose setting, but it does not mean that it works out of the box for a custom domain.

If you use a custom domain you have to create your own app in Google Developer console: https://developers.google.com/identity/sign-in/web/sign-in

Then you have to configure the redirect uri to point to https://squidex.camptoo.com/identity-server/signin-google

Then you google client Id and secret and override the Squidex defaults: https://github.com/Squidex/squidex/blob/master/backend/src/Squidex/appsettings.json#L502