aboutsummaryrefslogtreecommitdiff
path: root/id/server
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2019-02-04 07:59:44 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2019-02-04 07:59:44 +0100
commitf33643667ae2daf3525be8744fff7e73ef4d7974 (patch)
tree746f506542638cbdca99a0d64beb0d9831e4f64f /id/server
parentf24d03991c8ada1bfb9e402b04d68cf01906cbee (diff)
downloadmoa-id-spss-f33643667ae2daf3525be8744fff7e73ef4d7974.tar.gz
moa-id-spss-f33643667ae2daf3525be8744fff7e73ef4d7974.tar.bz2
moa-id-spss-f33643667ae2daf3525be8744fff7e73ef4d7974.zip
update http-Proxy injection
Diffstat (limited to 'id/server')
-rw-r--r--id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/utils/HttpClientWithProxySupport.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/utils/HttpClientWithProxySupport.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/utils/HttpClientWithProxySupport.java
index 7121c4a2a..31c66376c 100644
--- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/utils/HttpClientWithProxySupport.java
+++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/utils/HttpClientWithProxySupport.java
@@ -72,8 +72,9 @@ public class HttpClientWithProxySupport {
String user = System.getProperty("http.proxyUser"); //$NON-NLS-1$
String pass = System.getProperty("http.proxyPassword"); //$NON-NLS-1$
if (MiscUtil.isNotEmpty(user) && pass != null) {
- CredentialsProvider credsProvider = new BasicCredentialsProvider();
- credsProvider.setCredentials(new AuthScope(host, p), new UsernamePasswordCredentials(user, pass));
+ CredentialsProvider proxyCredsProvider = new BasicCredentialsProvider();
+ proxyCredsProvider.setCredentials(new AuthScope(host, p), new UsernamePasswordCredentials(user, pass));
+ clientBuilder.setDefaultCredentialsProvider(proxyCredsProvider);
}
}