Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call an outside window authenticated site #159

Open
ShoshanaKotev opened this issue Dec 1, 2022 · 0 comments
Open

Call an outside window authenticated site #159

ShoshanaKotev opened this issue Dec 1, 2022 · 0 comments

Comments

@ShoshanaKotev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant