Yes, the URL in Google Cloud needs to be
http://localhost:5678/rest/oauth2-credential/callback
This error means that the URL configured in Google Cloud is not the same as the one n8n initiated a request from. n8n will send
http://localhost:5678/rest/oauth2-credential/callback
in the request, so the redirect URL in Google Cloud must be the same.
As long as Docker is running, and you’re able to access localhost:5678 locally, the callback URL should also work.