diff --git a/README.md b/README.md index 1dd8bb03245458d889950e0ae23539da829470dc..99717d6c0f9207737b1f362338325ea7a4b618f4 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,11 @@ GitLabApi gitLabApi = new GitLabApi("http://your.gitlab.com", "YOUR_PRIVATE_TOKE // Log in to the GitLab server using a proxy server (no auth on proxy) Map proxyConfig = ProxyClientConfig.createProxyClientConfig("http://your-proxy-server"); GitLabApi gitLabApi = new GitLabApi("http://your.gitlab.com", "YOUR_PRIVATE_TOKEN", null, proxyConfig); + +// Log in to the GitLab server using an NTLM (Windows DC) proxy +Map ntlmProxyConfig = ProxyClientConfig.createNtlmProxyClientConfig( + "http://your-proxy-server", "windows-username", "windows-password", "windows-workstation", "windows-domain"); +GitLabApi gitLabApi = new GitLabApi("http://your.gitlab.com", "YOUR_PRIVATE_TOKEN", null, ntlmProxyConfig); ``` See the Javadoc on the GitLabApi class for a complete list of methods accepting the proxy configuration (clientConfiguration parameter)