Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1573

How do I get NTLM to use current user credentials/token?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 4.4 Beta1
    • None
    • HttpClient (classic)
    • Windows

    Description

      I want to extend a website monitoring application to support sites using NTLM (aka: Windows Authentication).
      The application is written in Java and uses the HTTPClient/Core 4.2 package, running against sites using basic HTTP authentication and client certificates.

      It runs on Windows servers and I would like it to poll NTLM-secured sites too, using the credentials of the current Windows user - NOT having to supply a name&password to the application.

      I have tried upgrading to both 4.3 and 4.4-beta1 (with httpclient-win-4.4-beta1.jar).
      But I cannot find any way to get the HttpClientBuilder/CloseableHttpClient to use the current user's windows persona.

      Is there a way to do this, or will I have to revert to plan B which is to convert the app to .NET (which I would hate to do!).

      Attachments

        Activity

          People

            Unassigned Unassigned
            PeterBinney Peter Binney
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: