I have been all over the internet trying to figure out why I am receiving the following redirect error message when trying to create a Google Oauth2 Credential on my self-hosted vm:
To start with I would remove most of those url env variables the only one you need is WEBHOOK_URL and setting the others could cause problems, also make sure you removed the endpoint env options as some of those are not set correctly.
Once that is done stop and start n8n to make sure they have applied and try the oauth connection again, if it fails again click on “more details” to see if it shows anything else.
Thanks for the reply I really appreciate it.
Unfortunately I have already tested my environment variables without those additional url env settings, aswel as the endpoint env, and the same problem persists.
note: i have tried to switch my instance to production by setting NODE_ENV=production and N8N_USE_PROXY=true. This does nothing, and doesnt even seem to change my server into production mode (still a dev label on site).
My google cloud app has been setup internally, and I have tried with and without specifying scopes, and tried adding credentials through Google OAuth2 and through Gmail.
Clicking on the “More Details” Displays nothing underneath - it is an empty dropdown box.
I have also tried running my servers on incognito. Nothing.
Please let me know of any other suggestion you would make. Our team are waiting anxiously for this Oauth Problem to be fixed.