How to configure URL format for OAuth Redirect URL

Describe the issue/error/question

Are we able to configure how the OAuth Redirect URL appears? If so how can that URL be configured?

I’m having an issue regarding configuring Google Sheets account credential. My OAuth Redirect URL is showing up as
n8n.example.com/rest/oauth2-credential/callback
instead of
https://n8n.example.com/rest/oauth2-credential/callback
and I believe the non https:// URL is problematic with OAuth.

I’m just looking to add the https:// portion to my OAuth Redirect URL

Information on your n8n setup

  • n8n version: 0.202.1
  • Database you’re using (default: SQLite): Postgres
  • Running n8n with the execution process [own(default), main]:
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: Docker

I found the solution! I had to configure the N8N_EDITOR_BASE_URL to include https://. I don’t think this was the most obvious configuration to fix though… N8N_EDITOR_BASE_URL doesn’t seem to be related to OAuth URL

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.