Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This doesn't work in JupyterHub #28

Open
groodt opened this issue May 15, 2020 · 1 comment
Open

This doesn't work in JupyterHub #28

groodt opened this issue May 15, 2020 · 1 comment

Comments

@groodt
Copy link

groodt commented May 15, 2020

If I do the following:

Dockerfile:

FROM jupyterhub/k8s-hub:0.9.0

# The published version on pypi is ancient
# https://github.com/mogthesprog/jwtauthenticator/issues/27
RUN export VERSION=bc08e8c389c9ce41a920376d8c2b15af66d2be15 && \
  curl https://github.com/mogthesprog/jwtauthenticator/archive/$VERSION.tar.gz --output archive.tar.gz && \
  tar -xzvf archive.tar.gz && \
  cd jwtauthenticator-$VERSION && \
  pip install -e .

jupyterhub_config.py

c.JupyterHub.authenticator_class = 'jwtauthenticator.jwtauthenticator.JSONWebTokenAuthenticator'

I receive this error:

The 'authenticator_class' trait of <jupyterhub.app.JupyterHub object at 0x7f6760385748> instance must be a type, but 'jwtauthenticator.jwtauthenticator.JSONWebTokenAuthenticator' could not be imported

However, if I use this package: https://pypi.org/project/jupyterhub-jwtauthenticator-v2/
it does work in JupyterHub. This package is a forked and modified version of your package, I believe the fixes are related to the imports in __init__.py

@ealyn
Copy link

ealyn commented Feb 12, 2022

Add RUN PYCURL_SSL_LIBRARY=openssl pip install --no-cache-dir jupyterhub-jwtauthenticator into k8s-hub Dockerfile work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants