TLJH + OAuthenticator + forward proxy

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.

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 :wink:

Try configuring the proxy using OAuthenticator.http_request_kwargs:

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

2 Likes

Many thanks Im now able to authenticate via ORCID and install conda packages :+1:

2 Likes