We want to use a custom JWT authenticator instead of a random token or password, but JupyterLab does not leverage it when the URL is accessed. This works fine in TLJH but not on a base JupyterLab installation (i.e. pip install jupyterlab
). Following is what I have in my jupyter_lab_config.py
file:
c = get_config() #noqa
c.JupyterHub.authenticator_class = 'jwtauthenticator.jwtauthenticator.JSONWebTokenAuthenticator'
c.JSONWebTokenAuthenticator.userid_claim_field = "custom:userid"
c.JSONWebTokenAuthenticator.auth_url = "https://auth.url.com"
c.JSONWebTokenAuthenticator.cookie_name = "id_token"
c.JSONWebTokenAuthenticator.client_id = "clientId"
c.JSONWebTokenAuthenticator.auth0_default_region = "us"
c.JSONWebTokenAuthenticator.tenant_id = "tenantId"
c.JSONWebTokenAuthenticator.redirect_url = "https://redirect.url.com"
c.IdentityProvider.token = ''
When trying to load the JupyterLab site from a private browser window, I expect to be redirected to Auth0 for authentication. Instead, it’s as if the authenticator is being ignored and the page just loads.
I’m assuming there’s some setting in my config that I’m missing.