My JupyterHub with Azure AD Authentication Returned 403 Response Despite Successful AD Login

Hi,
I am trying to deploy JupyterHub in my project for the very first time and I am having issues with my Azure AD Integration to JupyterHub.

I integrated Azure AD to JupyterHub using AzureAdOAuthenticator and JupyterHub is always returning although:

  1. My AD login was successful
  2. I’ve added my AD login email (xxx@xxx.sg) to c.AzureAdOAuthenticator.admin_users
  3. I have set the settings: c.AzureAdOAuthenticator.allow_all = True

I’m using jupyterhub.spawner.LocalProcessSpawner for c.JupyterHub.spawner_class.

I have been trying to troubleshoot and find where I went wrong for the past couple of days and I can’t really pin point what the root cause is. Hence, I’m here calling out for help here. Thank you to anyone who takes their time to read up on my issue and I really appreciate any advice.

Can you turn on debug logging, and show us your hub logs?