Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
356950eb
Unverified
Commit
356950eb
authored
Jun 23, 2019
by
Greg Messner
Committed by
GitHub
Jun 23, 2019
Browse files
Added info on using an NTLM proxy.
parent
5bc4394a
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
356950eb
...
...
@@ -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
<
String
,
Object
>
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
<
String
,
Object
>
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)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment