2018-09-18 08:39:46 +02:00
2018-09-18 08:39:46 +02:00
2018-09-18 08:39:46 +02:00

go-ntlm-proxy-auth

License: MIT GoDoc

With this package, you can connect to http/https servers protected by an NTLM proxy in Golang.

Example

// 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 !!!
        Dial: dialer.Dial,
        DialContext: ntlmDialContext,
        // TLSClientConfig: ...
    },
}
Description
Authorize to an NTLM Proxy for a HTTP(S) connection in Golang (LaunchDarkly fork)
Readme MIT 46 KiB
Languages
Go 100%