1
votes

I managed to get wso2-AM to work on my local machine. However, I can't integrate an API if it's only reachable using a corporate proxy.

I got a tomcat application HTML page when I try to invoke the API.

ERROR - APIProviderHostObject Error occurred while connecting to backend : https://mypage.mydns:8443/oidc-client/, reason : The host did not accept the connection within timeout of 4000 ms

Of course from the host that runs the server I can do a

wget https://mypage.mydns:8443/oidc-client/

and it works.

However, when I do it without proxy set in the environment variable

wget --no-proxy https://mypage.mydns:8443/oidc-client/

I get a timeout.

My question is, how do I configure wso2 AM to use a corporate proxy to access a remote backend.

Thanks for any clue.

If I find a way, I'll post the answer.

1

1 Answers

0
votes

Add the following system parameters to wso2server.sh with your proxy settings.

-Dhttps.proxyHost='10.46.12.63' \ 
-Dhttps.proxyPort='3128' \ 
-Dhttp.proxyHost='10.46.12.63' \ 
-Dhttp.proxyPort='3128' \ 
-Dhttp.nonProxyHosts="127.0.0.1,localhost,*.wso2.com" \