Stuck on Google API redirect URI / n8n credentials set up

I just got a Mac (silicon) and I’ve been following the set up for local AI with Ollama running directly and Docker for the rest (postgres, n8n, qdrant, flowise, openwebui) as found here: https://github.com/coleam00/ai-agents-masterclass/tree/main/local-ai-packaged

I’ve reached the step where I’m setting up n8n credentials, and I have Ollama, Qdranta and Postgres all working, but I’m stuck on the Google one.

The instructions say Don't use localhost for the redirect URI, just use another domain you have, it will still work!

But I have not been able to make it work. :upside_down_face:

My n8n Ouath Redirect URL is http://localhost:5678/rest/oauth2-credential/callback

I’ve tried putting another domain to replace localhost, localhost:5678, and to replace the entire thing. None of those seem to work.

Can anyone give me a working pattern for what I should be putting in the Google Redirect URI?

Thanks in advance!!

1 Like

For Google you’ll have to use a domain with https, so local host isn’t going to work! Do you have an actual domain (like https://tamasin.ai) that you could use instead?

Oh, I see the problem. My personal domain isn’t set up with HTTPS, since I haven’t used it in years. Thanks!

I actually got it somewhat working on localhost:5678 by adding my google account as a test account (although I can’t seem to find that page again!). Just adding this in case it helps someone else. :slight_smile:

1 Like

Thanks for circling back! Glad you figured it out!