browserup / browserup-proxy

BrowserUp Proxy is a free utility to watch, test, and manipulate web application network traffic and performance.
https://browserup.com
Apache License 2.0
164 stars 41 forks source link

NTLM login fails with 'AuthType NTLM is not supported for HTTP Authorization' #201

Open gajananrmahajan opened 4 years ago

gajananrmahajan commented 4 years ago

I'm trying to automate NTLM login using browserup-proxy with intergration of Selenium WebDriver and it results into 'AuthType NTLM is not supported for HTTP Authorization'

Steps to reproduce: Following is code snippet to achieve the same -

        String path = "src/test/resources";
        File file = new File(path);
        String absolutePath = file.getAbsolutePath() + "\\chromedriver.exe";
        System.setProperty("webdriver.chrome.driver", absolutePath);

        BrowserUpProxy browserUpProxyServer = new BrowserUpProxyServer();
        browserUpProxyServer.autoAuthorization("the-myapp.com", "admin", "admin", AuthType.NTLM);
        browserUpProxyServer.start();

        Proxy seleniumProxy = ClientUtil.createSeleniumProxy(browserUpProxyServer);

        ChromeOptions chromeOptions = new ChromeOptions();
        chromeOptions.setProxy(seleniumProxy);

        driver = new ChromeDriver(chromeOptions);
        driver.get("https://the-myapp.com/bnp");

When this code is run, following error is thrown for autoAuthorization() method -

AuthType NTLM is not supported for HTTP Authorization

Expected behavior NTLM auto authorization is expected to succeed