I currently have an external flask service which interacts with Jhub. I am using Oauth with flask (Flask-oidc) as well as Jhub. I realized I can remove flask OIDC altogether if I use Jhub to authenticate user. So I followed https://github.com/jupyterhub/jupyterhub/blob/22f86ad76c437d37bc26c28d9fecfa5457ef5974/examples/service-whoami-flask/whoami-oauth.py this example. I added this code to my existing flask app which is registered in
config.yaml. I am setting
JUPYTERHUB_API_TOKEN in my app.
But I am getting
ValueError: oauth_client_id cannot be empty when tried using HubOAuth with flask service.
Is there something I am missing? I looked for similar errors on Stack Overflow or on older Github discussions, it seems it should be resolved in new version of Z2JH.
Any guidance on this will be really appreciated. Thanks.