I’m trying to create a Google Sheets OAuth2 API credential.
Under my Google Cloud project, I’ve done the following:
Under Branding > Authorised Domains, i’ve added “n8n.cloud“
Under Audience > Publishing status, I’ve set it to “Testing” & I’ve added my email under Test user.
Under OAuth 2.0 Client ID, I’ve added a record.
Under Data access, I haven’t added anything yet.
Under Authorised redirect URIs, I’ve added my URI - https://.app.n8n.cloud/rest/oauth2-credential/callback
In n8n, when I try to add a “Google Sheets OAuth2 API“ credential & click the “Sign in with Google“ button, select my email, select all to give access to everything required, & click “Continue”, I get this error message:
When google tries to send that authorization code back to oauth.n8n.cloud but your google project only recognizes your specific instance URL, the whole thing just breaks.
When I created the n8n instance yesterday, my n8n version was on 2.1.3 by default. I was getting this error with version 2.1.3.
Yesterday evening, I updated it to 2.1.4 (which seems to be the latest stable version). I then tried creating my ”Google Sheets OAuth 2.0 api” credential again, & it just worked.
This thread and you guys are a life saver!! my n8n was on version 2.2.1 (latest beta) as I like my instance to be the latest and greatest, and I was stuck with this exact same problem for 2 days
until I saw this reply and this thread, and finally solved it by switching to 2.1.4!! Turns out the latest (2.2.1) is NOT the greatest
Thanks again @damosull and @adnan.kaiser for the solution and for opening this thread!!!