I have the following problem, I am trying to connect my n8n which is hosted on one of my virtual machines inside an enterprise network with Microsoft Azure. After watching a tutorial and creating the app, when I want to make the connection from n8n I get the following error:
Unable to access this website.
The localhost page has refused the connection.
The URL I enter in Azure is the one provided by n8n: http://localhost:5678/rest/oauth2-credential/callback
Also, in a tutorial I saw on Youtube, it does not have this problem and manages to authenticate well both things.
Some considerations: my Azure account is Admin, so the permissions to enable the N8N application are sufficient. If anyone knows or already tried to do it, I would appreciate your help, thank you very much!
There is some additional which could help us, help you.
Can you please share the youtube tutorial you are trying to following?
Also sharing an actual workflow we be considered a plus.
In most cased with other oauth2 issues is the lack of “allowed origins” or “undefined/insufficient” scopes". I didn’t try on azure but does it have something like a definition on which origins/domains are allowed to make request?
I did exactly the step by step, I get to the tab to authenticate, I give the permissions, I give the Ok to sync but then I get the error that Microsoft can’t access localhost which is understandable.