jlguenego / node-expose-sspi

Expose Microsoft Windows SSPI to Node for SSO authentication.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call an outside window authenticated site

ShoshanaKotev opened this issue · comments

Hello,

I have a Node.js server on localhost. I use your excellent library - node-expose-sspi – for authenticating to my server with SSO.
From my server, I need to make a request to another site (not on localhost), for downloading a file. The requested URL is in shape like https://ip-address/...myDocument.docx.
The other site (https://ip-address/) has windows authentication, and is on my local intranet site list. The problem is that when calling from my Node.JS server, I always get ERROR 401 (unauthorized). I tried to use your library for calling the other site as client like this example:
https://github.com/jlguenego/node-expose-sspi/blob/aa53a41f6fbbf58e38cdd8d1643203c093274bcb/examples/client/client.js
I got in return status code 200, but no file.

How can I use your library to download a file from the windows authenticated site?

Thank you very much!!!
Shoshana