jlguenego / node-expose-sspi

Expose Microsoft Windows SSPI to Node for SSO authentication.
ISC License
126 stars 20 forks source link

Call an outside window authenticated site #159

Open ShoshanaKotev opened 1 year ago

ShoshanaKotev commented 1 year ago

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