jupyterhub / the-littlest-jupyterhub

Simple JupyterHub distribution for 1-100 users on a single server
https://tljh.jupyter.org
BSD 3-Clause "New" or "Revised" License
1.01k stars 341 forks source link

Setting Up Azure AD authenticator results in Bad Gateway for TLJH #950

Closed arun-soliton closed 5 months ago

arun-soliton commented 8 months ago

Bug description

  1. I have hosted JupyterHub (TLJH) in Azure VM
  2. By default the authentication is PAM
  3. My primary goal is to set Azure AD authentication for login overriding the existing PAM authentication
  4. I set up the authentication using the command tljh-config and my configurations are below (The configurations are listed using the command sudo tljh-config show) image
  5. The client id and client secret are taken from the app service created in Azure
  6. After setting the configurations, I reloaded the hub using sudo tljh-config reload and when I accessed the IP, it shows Bad Gateway.

Am I missing something in the configurations?

welcome[bot] commented 8 months ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

mhatremahesh commented 7 months ago

I have the same problem. Is there any solution for this? I think I won't be able to change configs as I can't log in to the jupyter hub

consideRatio commented 5 months ago

Resolved by #959 i think.

arun-soliton commented 5 months ago

Thanks for the fix. Did you try authenticating with Microsoft SSO after the fix?

consideRatio commented 5 months ago

No trial of anything done, but the requirements to use oauthenticator's AzureAdOAuthenticator class is now there for tljh - and its successfully used outside tljh

arun-soliton commented 5 months ago

@consideRatio Thanks. Will try setting it up and post the findings.