Support for HTTP Proxy servers

Issue #74 resolved
Todd Carmichael created an issue

In some cases a /jwks end point may be only accessible via a proxy server.

Attached change is to provide a code path to call

HttpURLConnection.openConnection()

with a proxy parameter. The caller can configure the Get object with a proxy and then call

            httpsJkws.setSimpleHttpGet(simpleGet);

Comments (4)

  1. Brian Campbell repo owner

    Seems reasonable and straight forward. I'll take a look at adding this.

    Are the system properties like https.proxyHost and https.proxyPort not sufficient for your usage?

  2. Todd Carmichael reporter

    for whatever reason, the global system properties were not working for me. I spent some time trying to figure it out but ran into dead ends. In addition, in my case, I only wanted some HTTP requests to go through a proxy.

  3. Brian Campbell repo owner

    You've maybe done this already but on existing versions you could copy the Get code into your own package and add this proxy support. And then provide an instance of that to HttpsJwks.

  4. Log in to comment