Well, I’m trying to create a credential to connect to my Google Drive, but when I go to Sign in with Google, I get an error that says: your redirect_uri is wrong.
But when I see the details, the request URI is not the same as I put in the OAuth Redirect URL field…
I belive you need to update either the N8N_HOST or VUE_APP_URL_BASE_API environment variable. Also make sure on your Google API setup that the API url is correct. Here I’m using the cloud version in my google api credentials setup.
are you using the --tunnel when creating the container. I know that its not a very good option in production. So every time you call the --tunnel there is a good chance that is going to change. If this is the current url it has for you in your n8n session you need to add the new callback url in the creditials setup in n8n to the google api connector.
example in my docker i have these to set my domain in my container build
So in my Google API creditials in the admin panel I have that callback url in the Authorized redirect URL.
So in your case you need to go to the Google API credentials and update the Authorized redirect URI for your credential to https://ckeu1cseqcy03adke5vsoaq8.hooks.n8n.cloud/rest/oauth2-credential/callback