javascript - Sails.JS - retry on NTLM Auth failure? -
i writing nodejs application based on sails.js, , i'm using ntlm-express ntlm authentication. works fine when authentication succeeds in cases fails (for example, firefox user entering wrong credentials) ntlm-express returns 500 error code, firefox stores credentials in cache , user unable login web app @ all, since he's not getting new prompt enter credentials. way user log in manually clear authentication cache in firefox , try again.
what i'd in cases ntlm-express fails authenticate user, prompt him again credentials instead of returning 500.
has done , can point me in right direction? found little information online regarding topic...
for runs similar issue, managed solve overriding express-ntlm forbidden function return 401 instead of of 500 , editing default sails unauthorized.js response return "www-authenticate: ntlm" header. way forcing client retry ntlm negotiation until gets right...
Comments
Post a Comment