Describe the problem/error/question
I got this error when I linked to Google OAuth.
What is the error message (if any)?
Error: OAuth callback failed because of insufficient permissions
More detailsFailed to connect. The window can be closed now.
I found this post, which mentioned that env needs to be configured, but after configuring it like this, I got the same error, it didn’t work.
I added this to the docker-compose.yml environment:
I changed the port to 15678 in docker-compose.yml, is it affected?
The code is as follows:
version: '3.8'
services:
n8ntest:
image: n8nio/n8n:1.91.2
container_name: n8ntest
ports:
- "15678:5678"
environment:
- N8N_DEFAULT_LOCALE=zh-CN
- N8N_SECURE_COOKIE=false
- N8N_HOST=localhost
- N8N_PROTOCOL=http
- N8N_PORT=15678
volumes:
- ./editor-ui-dist:/usr/local/lib/node_modules/n8n/node_modules/n8n-editor-ui/dist
stdin_open: true
tty: true
restart: unless-stopped
Here, when I added N8N_PORT=15678 : localhost:15678 cannot be opened
When I didn’t add N8N_PORT = 15678, in the request in the “OAuth Redirect URL”, n8n are using the same: http://localhost:5678/rest/oauth2-credential/callback did not change for 15678
I think the cause of this problem is here, but I don’t know how to fix it.
How can I change the port number in the “OAuth Redirect URL” to 15678?
Information on your n8n setup
- **n8n version: **1.91.2
- **Database (default: SQLite):**SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**Docker
- **Operating system:**Windows 11