Reputation: 2474
Looking through npm all ntlm / kerberos modules seem to want a hard coded username and password when performing HTTP requests against a windows authenticated endpoint.
Is it possible to use the credentials of the currently logged in user?
e.g. In PowerShell I can do this:
$wc = new-object System.Net.WebClient
$wc.UseDefaultCredentials = $true
Would this be at all possible with node?
Upvotes: 4
Views: 1901
Reputation: 1301
NTLM and Kerberos authentication are possible with node-expose-sspi.
https://github.com/jlguenego/node-expose-sspi
Note : I am the author of node-expose-sspi.
Upvotes: 1