Suppress NTLM dialog box after unauthorized request

后端 未结 3 1827
醉话见心
醉话见心 2021-01-12 12:25

In a recent sharepoint project, I implemented an authentication webpart which should replace the NTLM authentication dialog box. It works fine as long as the user provides v

3条回答
  •  花落未央
    2021-01-12 12:43

    I was able to get this working for all browsers except firefox. See my blog post below from a few years ago. My post is aimed at IE only but with some small code changes it should work in Chrome and safari.

    http://steve.thelineberrys.com/ntlm-login-with-anonymous-fallback-2/

    EDIT:

    The gist of my post is wrapping your JS xml call in a try catch statement. In IE, Chrome, and Safari, this will suppress the NTLM dialog box. It does not seem to work as expected in firefox.

提交回复
热议问题