Skip to content

Commit 356950e

Browse files
authored
Added info on using an NTLM proxy.
1 parent 5bc4394 commit 356950e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ GitLabApi gitLabApi = new GitLabApi("http://your.gitlab.com", "YOUR_PRIVATE_TOKE
8484
// Log in to the GitLab server using a proxy server (no auth on proxy)
8585
Map<String, Object> proxyConfig = ProxyClientConfig.createProxyClientConfig("http://your-proxy-server");
8686
GitLabApi gitLabApi = new GitLabApi("http://your.gitlab.com", "YOUR_PRIVATE_TOKEN", null, proxyConfig);
87+
88+
// Log in to the GitLab server using an NTLM (Windows DC) proxy
89+
Map<String, Object> ntlmProxyConfig = ProxyClientConfig.createNtlmProxyClientConfig(
90+
"http://your-proxy-server", "windows-username", "windows-password", "windows-workstation", "windows-domain");
91+
GitLabApi gitLabApi = new GitLabApi("http://your.gitlab.com", "YOUR_PRIVATE_TOKEN", null, ntlmProxyConfig);
8792
```
8893
See the Javadoc on the GitLabApi class for a complete list of methods accepting the proxy configuration (clientConfiguration parameter)
8994

0 commit comments

Comments
 (0)