How to verify domain for Google API with Cloudflare Access

I have Github authentication set up for my Cloudflare Access, but I’d prefer Google.

In the OAuth client creation for Google, I’m unable to add the cloudflareaccess.com domains for the origin and callbask as they are not authorised urls.

However I cannot verify and authorise them with google as obviously, I don’t own the cloudflareaccess.com domain.

Is there a solution to this?

1 Like

I have the same problem.

What Cloudflare says:

  1. Select the Application Type ‘Web Application’. Give your application a name and in Authorized Javascript Origins, put https://subdomain.cloudflareaccess.com .
  2. In the Authorized redirect URIs section, put https://subdomain.cloudflareaccess.com/cdn-cgi/access/callback . Click create.

What Google says:


Invalid Origin: Domain must be added to the authorised domains list before submitting.
Invalid redirect: Domain must be added to the authorised domains list before submitting.

1 Like