clncln1 / node-ntlm-client

A node.js NTLM client with support for NTLM and NTLMv2 authentication
MIT License
10 stars 23 forks source link

Honour ADFS redirects. #7

Closed ximon18 closed 1 year ago

ximon18 commented 6 years ago

Fixes authentication for the ADFS server I am authenticating against because it redirects both to different relative path and appends a ?SAMLRequest=... query parameter in the redirect Location. Without these subsequent stages of the authentication process fail. Setting request.followRedirect: true isn't enough because that correctly causes redirects to be followed within a single stage of the authentication, but then subsequent stages revert to the original URL provided by the caller, not the redirected URL.