go-server-sdk: github.com/launchdarkly/go-server-sdk/ldntlm Index | Files

package ldntlm

import "github.com/launchdarkly/go-server-sdk/ldntlm"

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

Package Files

ntlm_proxy.go

func NewNTLMProxyHTTPClientFactory Uses

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.

Package ldntlm imports 7 packages (graph). Updated 2020-04-05. Refresh now. Tools for package owners.