# TLJH + OAuthenticator + forward proxy

**URL:** <https://discourse.jupyter.org/t/tljh-oauthenticator-forward-proxy/37784>\
**Category:** JupyterHub\
**Created:** [August 22, 2025, 12:28pm UTC](https://discourse.jupyter.org/t/tljh-oauthenticator-forward-proxy/37784 "2025-08-22T12:28:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brendan\_Gilbert](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/brendan_gilbert/32/13079_2.png) [@Brendan\_Gilbert](https://discourse.jupyter.org/u/Brendan_Gilbert)\
**Post date:** [August 22, 2025, 12:28pm UTC](https://discourse.jupyter.org/t/tljh-oauthenticator-forward-proxy/37784/1 "2025-08-22T12:28:10Z")

</div>

Hi,

Configured TLJH Auth to use OAuthenticator.Generic but getting an error **`Failed to connect to orcid.org port 443 after 15112 ms: Connection timed out`** indicates that JupyterHub server cannot reach ORCID’s OAuth endpoint ( **`orcid.org:443`** ), which is required for user authentication.

I suspect the Hub is not forwarding the outbound traffic via the corporate forward proxy server. However, proxy settings have been configured at /etc/enviroment and tljh-config. Testing with curl in Jupyterhub terminal confirms traffic is going forward proxy, installing Julia packages is also indication that the kernels are forwarding https traffic via forward proxy.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/3X/9/5/95cd1228acb89fd860755b34f04f4f6057f3c466.png)

Interesting conda update fails and times out, suppose I need to add proxy\_servers to conda config. At this stage sorting out ORCID authentication is the priority and will address other forward proxy issues afterwards……..possibly with your assistance as well 😉

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [August 22, 2025, 1:30pm UTC](https://discourse.jupyter.org/t/tljh-oauthenticator-forward-proxy/37784/2 "2025-08-22T13:30:12Z")

</div>

Try configuring the proxy using `OAuthenticator.http_request_kwargs`:

> **[oauthenticator.oauth2 — OAuthenticator](https://oauthenticator.readthedocs.io/en/latest/reference/api/gen/oauthenticator.oauth2.html#oauthenticator.oauth2.OAuthenticator.http_request_kwargs)**

For conda you can configure a proxy in a `.condarc` file

> **[Using the .condarc conda configuration file — conda 22.9.0 documentation](https://docs.conda.io/projects/conda/en/22.9.x/user-guide/configuration/use-condarc.html#config-proxy)**

---

<div class="post-metadata">

**Author:** ![Brendan\_Gilbert](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/brendan_gilbert/32/13079_2.png) [@Brendan\_Gilbert](https://discourse.jupyter.org/u/Brendan_Gilbert)\
**Post date:** [August 22, 2025, 8:17pm UTC](https://discourse.jupyter.org/t/tljh-oauthenticator-forward-proxy/37784/3 "2025-08-22T20:17:41Z")

</div>

Many thanks Im now able to authenticate via ORCID and install conda packages 👍
