Package: wnpp
Severity: wishlist
Owner: Mikhail Potemkin <[email protected]>

* Package name    : golang-github-launchdarkly-go-ntlm-proxy-auth
  Version         : 1.0.2-1
  Upstream Author : LaunchDarkly
* URL             : https://github.com/launchdarkly/go-ntlm-proxy-auth
* License         : MIT
  Programming Lang: Go
  Description     : Authorize to an NTLM Proxy for a HTTP(S) connection in 
Golang (LaunchDarkly fork)

 go-ntlm-proxy-auth
 .
 License: MIT (https://opensource.org/licenses/MIT) GoDoc
 (https://godoc.org/github.com/launchdarkly/go-ntlm-proxy-auth) Build and
 Test (https://github.com/launchdarkly/go-ntlm-proxy-
 auth/actions/workflows/ci.yml)
 .
 With this package, you can connect to http/https servers protected by an
 NTLM proxy in Golang.
 .
 This is a fork of (https://github.com/Codehardt/go-ntlm-proxy-auth) which
 adds support for HTTPS proxy URLs. It also uses the fork
 (https://github.com/launchdarkly/go-ntlmssp) instead of
 github.com/Azure/go-ntlmssp.
 .
 Example: NewNTLMProxyDialContext
 .
   // create a dialer
   dialer := &net.Dialer{
       Timeout:   30 * time.Second,
       KeepAlive: 30 * time.Second,
   }
 .
   // wrap dial context with NTLM
   ntlmDialContext := ntlm.NewNTLMProxyDialContext(dialer, proxyURL,
 "user", "password", "domain", nil)
 .
   // create a http(s) client
   client := &http.Client{
       Transport: &http.Transport{
           Proxy: nil, // !!! IMPORTANT, do not set proxy here !!!
           DialContext: ntlmDialContext,
       },
   }
 .
 Example: WrapDialContext (deprecated - does not support HTTPS proxy URL)
 .
   // create a dialer
   dialer := &net.Dialer{
       Timeout:   30 * time.Second,
       KeepAlive: 30 * time.Second,
   }
 .
   // wrap dial context with NTLM
   ntlmDialContext := ntlm.WrapDialContext(dialer.DialContext,
 "proxyAddr", "user", "password", "domain")
 .
   // create a http(s) client
   client := &http.Client{
       Transport: &http.Transport{
           Proxy: nil, // !!! IMPORTANT, do not set proxy here !!!
           DialContext: ntlmDialContext,
       },
   }


Needed by golang-github-launchdarkly-go-server-sdk

Reply via email to