Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
6 years ago
by
Greg Messner
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Added info on using an NTLM proxy.
parent
5bc4394a
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+5
-0
README.md
with
5 additions
and
0 deletions
+5
-0
README.md
+
5
-
0
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)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets