iisnode
iisnode copied to clipboard
Basic Auth rejected on route to nodeSSPI using nodeiis
Hi,
I added the nodeSSPI Api call to an express server in iisnode on iis. Everything works fine on a local host request via Ajax from the browser and the user's name is returned from req.connection.user after a prompt for basic auth credentials.
But when I deploy the express server to a remote machine on IIS outside our domain. The server denies the GET request from the browser to the nodeSSPI Api on the express server. Even after I supply the correct basic auth details to the pop up in the browser:
app.get('/OOO/UserLDAP', UserLDAP.Authenticate);
giving back a 403 error- forbidden
Do you have any info as to why basic auth would return 403 when using iisnode on IIS in a windows box? I can supply more info such as the web.config file if needed.
Gist of node server setup and utility class:
https://jsfiddle.net/brianVarley/tf1puukp/
Hi Brian,
Same issue with me, any suggestions please.
While i run the express app from command prompt, windows authentication prompt works fine, but when i deploy it in IIS server , windows prompting continuously event after correct credentials.I am using node SSPI .
uploaded a screenshot of the web.config file
Same issue here