node-soap icon indicating copy to clipboard operation
node-soap copied to clipboard

Security/Authentication handling is weird

Open FrankyBoy opened this issue 12 years ago • 4 comments

I have the case of NTLM authentication (yay, right? :P). Even when using basic auth (which I hoped would work as a fallback), I get a 401 with a WWW-Authenticate header. So I started digging through the code. First reading the code from the provided BasicAuthSecurity, then reading how request.js likes to have it: https://github.com/mikeal/request#http-authentication Turns out request.js already has (seemingly) way sophisticated authentication capabilities but they go unused and instead special headers are injected.

EDIT: I just saw addOptions, I'll try porting the BasicAuthSecurity to using that instead of addHeaders (which is not documented btw) and see where I'll get.

FrankyBoy avatar Oct 07 '14 11:10 FrankyBoy

@FrankyBoy thanks for using node-soap. Feel free to make it better as you see fit.

jsdevel avatar Oct 07 '14 16:10 jsdevel

@FrankyBoy did you find a solution for this that can be shared with the community?

0xbboyd avatar Jan 09 '15 23:01 0xbboyd

nope, sorry, just fell back to request-ntlm (because ntlm is what I needed) and extended that a little bit -> request-ntlm-continued

FrankyBoy avatar Jan 10 '15 09:01 FrankyBoy

@FrankyBoy thanks

0xbboyd avatar Jan 12 '15 19:01 0xbboyd