Microsoft Outlook OAuth behind proxy

Hello,

When I try to use the node Microsoft Outlook I’ve got this issue :

{“code”:0,“message”:“Unable to connect to login.microsoftonline.com:443”,“hint”:“”,“stack”:“ConnectionError: Unable to connect to login.microsoftonline.com:443\n at TLSSocket.onError (/usr/local/lib/node_modules/n8n/node_modules/popsicle-transport-http/dist/index.js:627:35)\n at Object.onceWrapper (node:events:642:26)\n at TLSSocket.emit (node:events:539:35)\n at TLSSocket.emit (node:domain:475:12)\n at emitErrorNT (node:internal/streams/destroy:157:8)\n at emitErrorCloseNT (node:internal/streams/destroy:122:3)\n at processTicksAndRejections (node:internal/process/task_queues:83:21)”}

I use NGINX in front of n8n and I’ve got this error :

The proxy is set up to access to Internet.

I’ve got this issue during the callback part of the authentication; Maybe I’ve miss something in my NGINX conf to allow this callback but I don’t know what it could be. My organisation use it’s own CA Authority maybe the problem comes from by point ?

I would really appreciate your help.

Thank you in advance.

After some invest I think the problem is that the node don’t use my company proxy.
In my env I’ve set up http_proxy and https_proxy but the node seems to not use them :

Hey @Kent1, I don’t think we currently have plans to implement proxy support for OAuth2 token requests specifically and unfortunately I can’t think of a great workaround for this one I am afraid :frowning:

I’ll convert this question into a feature request for now which means you and other users will be able to vote on having this implemented going forward.

Hi,

Thank for your reply.

Please let me know when you will convert this into feature I will definitly vote for it.

1 Like

It already is, you should see the “Vote” button in the upper left corner of this thread:

image

And sorry for the trouble here, I wish I had other news :see_no_evil:

1 Like

Does anyone can help me to connect to O365 Outlook via a proxy please ?
I can make HTTP request or whatever I just need to access to a mailbox via Graph API

I am looking for the solution of popsicle-transport-http via a proxy, also.
I vote for this feature.