Describe the problem/error/question
I have a problem to config new credential of Google Auth. I create and add informations like ClientID and Client Secrets created on Google API, but the OAuth Redirect URL given is without https schema like this “n8n.domain.io/rest/oauth2-credential/callback”.
I add the url with http and https on GoogleAPI credentials config.
I running with nginx proxy and set variable WEBHOOK_URL: https://n8n.domain.io/webhook/
What is the error message ?
When i try Sign in with google the screen with message is open
Access blocked: Authorization Error
You can’t sign in to this app because it doesn’t comply with Google’s OAuth 2.0 policy for keeping apps secure.
You can let the app developer know that this app doesn’t comply with one or more Google validation rules.
Learn more about this error
If you are a developer of Blip-Sheets, see error details.
Error 400: invalid_request
Information on your n8n setup
- n8n version: 1.36.4
- Database (default: SQLite): Postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): k8s kubernets
- Operating system: Linux
Hey @Wellington_Costa,
Welcome to the community 
It sounds like maybe the WEBHOOK_URL environment variable is not being up correctly or you have another variable that is not correctly set.
Can you share all of the env options you have set and for now update the webhook url to remove /webhook/ from the end as it isn’t needed and may cause other issues.
This is my configmap used on deploymento
apiVersion: v1
kind: ConfigMap
metadata:
name: n8n-configmap
namespace: n8n
data:
WEBHOOK_URL: “https://n8n.domain.io/”
N8N_PORT: “5678”
N8N_ENCRYPTION_KEY: xxxxxxxx
N8N_DEFAULT_LOCALE: pt-BR
N8N_METRICS: “true”
N8N_METRICS_INCLUDE_CACHE_METRICS: “true”
N8N_METRICS_INCLUDE_MESSAGE_EVENT_BUS_METRICS: “true”
N8N_METRICS_INCLUDE_WORKFLOW_ID_LABEL: “true”
N8N_METRICS_INCLUDE_API_ENDPOINTS: “true”
N8N_METRICS_INCLUDE_API_STATUS_CODE_LABEL: “true”
N8N_HOST: n8n.doman.io
N8N_SMTP_HOST: smtp.domain.net
N8N_SMTP_PORT: xxxxx
N8N_SMTP_USER: xxxxxxx
N8N_SMTP_PASS: xxxxxxx
N8N_SMTP_SENDER: xxxxxx
N8N_SMTP_SSL: “true”
N8N_LOG_LEVEL: verbose
GENERIC_TIMEZONE: America/Sao_Paulo
QUEUE_BULL_REDIS_HOST: redis-service
QUEUE_HEALTH_CHECK_ACTIVE: “true”
EXECUTIONS_MODE: queue
EXECUTIONS_DATA_PRUNE: “true”
EXECUTIONS_DATA_MAX_AGE: “336”
EXECUTIONS_DATA_PRUNE_MAX_COUNT: “10000”
@Wellington_Costa with that config does the url look correct now in the redirect uri option?
Also make sure that the url you set in the google app starts with https://
this is my api credentials config
This is my config of nginx
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: n8n-ingress-nginx
namespace: n8n
annotations:
nginx.org/websocket-services: "n8n-service"
nginx.org/server-snippets: |
more_clear_headers "Server";
more_set_headers "X-Frame-Options: SAMEORIGIN";
proxy_set_header Accept-Encoding "";
spec:
ingressClassName: nginx-class
rules:
- host: n8n.domain.io
http:
paths:
- path: /webhook/
pathType: Prefix
backend:
service:
name: webhook
port:
number: 5678
- path: /webhook-waiting/
pathType: Prefix
backend:
service:
name: webhook
port:
number: 5678
- path: /
pathType: Prefix
backend:
service:
name: n8n-service
port:
number: 5678
@Jon Any suggestions?
I need some help to understand.
Hey @Wellington_Costa,
That error looks like you either don’t have webhook_url set correclty still or maybe you have the editor url set in the env options as well.
I check in pods and variables N8N_EDITOR_BASE_URL is set to n8n.domain.io without https. I don`t know why. After set in configmap to N8N_EDITOR_BASE_URL: https://n8n.domain.io works. Thanks