Jupyterhub oauthenticator

Does anyone has been implementing the utilization of a proxy to get connection with Authenticator provider? We are running into challenges to enable a proxy to get connection. We are using currently oauthenticator

Traceback (most recent call last):
File “/opt/app-root/lib64/python3.11/site-packages/tornado/web.py”, line 1859, in _execute
result = await result
^^^^^^^^^^^^
File “/opt/app-root/lib64/python3.11/site-packages/oauthenticator/oauth2.py”, line 217, in get
user = await self.login_user()
^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/app-root/lib64/python3.11/site-packages/jupyterhub/handlers/base.py”, line 754, in login_user
authenticated = await self.authenticate(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/app-root/lib64/python3.11/site-packages/jupyterhub/auth.py”, line 469, in get_authenticated_user
authenticated = await maybe_future(self.authenticate(handler, data))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/app-root/lib64/python3.11/site-packages/oauthenticator/generic.py”, line 200, in authenticate
resp = await http_client.fetch(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionRefusedError: [Errno 111] Connection refused

Thanks for your help in advanced.

Are you trying to use a forward proxy between the hub and your IDP, or are you trying to disable a forward proxy that’s configured by default?

Can you share your full JupyterHub configuration, including any environment variables you’ve set in your startup scripts?

Could you also turn on debug logging and share your logs?