N8n doesn't give OAuth redirect url

Describe the problem/error/question

It seems that a bug appears. I am on n8n cloud. 2.1.2 . When trying to connect google stuff by creating credentials. It seems that no OAuth redirect url appears. Therefore I can’t connect anything into google console. I have tried everything and looked everywhere. No solutions.

It should look like that :

Information on your n8n setup

  • n8n version: 2.1.2
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • Operating system:
2 Likes

It’s also not showing in mine, and I’m getting an app blocking error. like Error 400: redirect_uri_mismatch

Exactly the same here, seems like there isn’t much to do about it

This looks like you already did set up an account where you copied the redirect URL. if you try to create a NEW credential do you also have this issue? Like when you don’t select an existing account but “create new credential”?

nah its just me trying things. it doesn’t work

Hey @Maxletigre !

Welcome to n8n community!

That’s should look since n8n handles in background the connection.

The 2nd image is ONLY for self-hosted version.

P.S at the moment I have seen a lot of report dues to OAuth with Google according to this post :

P.S @Node_Bench read docs first, or take the basic courses.

Cheers!

Case closed lol.

yes

I might have to go on self hosted

1 Like

The same error is coming, and no solution is available!

they should be working on it

Ok so they changed how it works in self hosted vs cloud:

on self hosted, there is still the URL, but on cloud you no longer need it, there you just click the button sign in with google and if you have completed the other steps (setting up the oAuth consent screen etc).

You still need to do all the steps of setting up the consent screen etc, but then you no longer need this redirect URL if you’re on the cloud plan:

Finish your n8n credential#

With the Google project and credentials fully configured, finish the n8n credential: - If self-hosted:

  1. From Google’s OAuth client created modal, copy the Client ID. Enter this in your n8n credential.

  2. From the same Google modal, copy the Client Secret. Enter this in your n8n credential. - If n8n cloud:

  3. In n8n, select Sign in with Google to complete your Google authentication.

  4. Save your new credentials.

So if you click on sign in it should work? Did you try that? what happens when you try to authenticate?

doesn’t work, this happens

When I click on “Sign-in with Google”, this error is showing. I have tried almost everything. It is not happening on my other n8n instances with the same email. It’s only happening in this instance. I am trying to connect google sheets. Please someone suggest whats the solution or what needs to be done. Am I doing something wrong? Or is it a backend issue?

Follow the documentation and make sure the highlighted steps have been applied in google console:

1 Like

I can assure you i have done everything, also I spoke to people on discord and it seems its a bug and they are working on it.

1 Like

I have tried everything too and nothing seems to work. I really hope they fix it asap

yep same, its really hard to work on n8n without google services ahah

I don t know if this it may be related but I have seen this about the callBackUrl that looks similar , and it hap been opened recently:

I bet that n8n team is aware of this, but for God sake, it happened :roll_eyes: in the Christmas evening…

Merry Christmas :santa_claus: to you all !

1 Like

the new version 2.1.3 doesn’t fix it.

I can get past and try to log in with google but then this happens.

1 Like

I am exactly where you are. I did all the type of configurations and confirmed everything is done accurately and I get the same error message as you. I hope this will be fixed shortly.
BTW. I even tried the ‘service account’ solutions suggested above.
Thanks everyone for trying to help

Same with me , stuck from last 6 hours