Is it possible to use built-in auth without using IIS?

I have a nginx reverse proxy for multiple node applications. Our users are online with Windows domain management. I know that I can use express-ntlm or passport-windowsauth to ask the user for their login credentials, but this is non-integrated auth.

Is it possible to use the built-in auth (authenticated users can bypass credentials) directly from node.js (or nginx) without IIS (or Apache)? If so, how?

I assume that we could replace nginx with IIS as a reverse proxy, but I would like to avoid this if I can.

+5
source share
1 answer

Yes you can, there is a package called node-sspi . It works only in a Windows environment.

Server Side Authentication Windows SSPI for Node

NodeSSPI to Node.js is what mod-auth-sspi is for Apache HTTPD. In a nutshell, NodeSSPI authenticates incoming HTTP (S) requests through its own SSPI for Windows, so NodeSSPI only works on Windows.

If you need to use it for other OSs, you need to develop your own node module or use Apache .

+2
source

Source: https://habr.com/ru/post/1246723/


All Articles