Documentation ¶
Overview ¶
Package ldntlm allows you to configure the SDK to connect to LaunchDarkly through a proxy server that uses NTLM authentication. The standard Go HTTP client proxy mechanism does not support this. The implementation uses this package: github.com/launchdarkly/go-ntlm-proxy-auth
Usage:
clientFactory, err := ldntlm.NewNTLMProxyHTTPClientFactory("http://my-proxy.com", "username", "password", "domain") if err != nil { // there's some configuration problem such as an invalid proxy URL } config := ld.DefaultConfig config.HTTPClientFactory = clientFactory client, err := ld.MakeCustomClient("sdk-key", config, 5*time.Second)
You can also specify TLS configuration options from the ldhttp package:
clientFactory, err := ldntlm.NewNTLMProxyHTTPClientFactory("http://my-proxy.com", "username", "password", "domain", ldhttp.CACertFileOption("extra-ca-cert.pem"))
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNTLMProxyHTTPClientFactory ¶
func NewNTLMProxyHTTPClientFactory(proxyURL, username, password, domain string, options ...ldhttp.TransportOption) (ld.HTTPClientFactory, error)
NewNTLMProxyHTTPClientFactory returns a factory function for creating an HTTP client that will connect through an NTLM-authenticated proxy server. This function should be placed in the HTTPClientFactory property of your Config object when you create the LaunchDarkly SDK client. If you are connecting to the proxy securely and need to specify any custom TLS options, these can be specified using the TransportOption values defined in the ldhttp package.
Types ¶
This section is empty.