Proxy¶
The Idsec SDK consumes many different API's from the ISP backend, for authentication or for actual services usage
To configure a proxy to work with the above, one can do it in a few ways:
- Set the
HTTPS_PROXYenvironment variable to the proxy URL. This will make all HTTPS requests go through the proxy. - Set the
HTTP_PROXYenvironment variable to the proxy URL. This will make all HTTP requests go through the proxy. - Set the
NO_PROXYenvironment variable to a comma-separated list of hostnames that should bypass the proxy. - Set the
IDSEC_PROXY_ADDRESSenvironment variable to the proxy URL. This will make all requests from the Idsec SDK go through the proxy, this overrides theHTTP_PROXYandHTTPS_PROXYsettings. - Configure the proxy settings in the code by using the
SetProxyAddressmethod of the SDK.
Authentication¶
If the proxy requires authentication, you can set the IDSEC_PROXY_USERNAME and IDSEC_PROXY_PASSWORD environment variables to the appropriate values. This will allow the Idsec SDK to authenticate with the proxy when making requests.