jupyterhub / tmpauthenticator

JupyterHub authenticator that hands out temporary accounts for everyone. For use in tmpnb.org
BSD 3-Clause "New" or "Revised" License
23 stars 18 forks source link

jupyterhub tries to spwan with API key #23

Closed marouenbg closed 3 years ago

marouenbg commented 3 years ago

Bug description

When I try to authenticate using tmpauthenticator, jupyterhub throws an error. It tries to authenticate using the API key.

Expected behaviour

To login without username and password

Actual behaviour

Fails to login

How to reproduce

I've attached a screenshot fo the issue

Your personal set up

# paste output of `pip freeze` or `conda list` here

packages in environment at /opt/anaconda3/py38:

#

Name Version Build Channel

_libgcc_mutex 0.1 main _r-mutex 1.0.0 anacondar_1 alembic 1.4.3 py_0 argon2-cffi 20.1.0 py38h7b6447c_1 async_generator 1.10 py_0 attrs 20.3.0 pyhd3eb1b0_0 backcall 0.2.0 py_0 bash 5.0.018 h0a1914f_0 conda-forge bash-kernel 0.7.2 pypi_0 pypi binutils_impl_linux-64 2.33.1 he6710b0_7 binutils_linux-64 2.33.1 h9595d00_15 biopython 1.78 py38h7b6447c_0 blas 1.0 mkl bleach 3.2.1 py_0 blinker 1.4 py38_0 brotlipy 0.7.0 py38h27cfd23_1003 bwidget 1.9.11 1 bzip2 1.0.8 h7b6447c_0 ca-certificates 2020.12.5 ha878542_0 conda-forge cairo 1.14.12 h8948797_3 certifi 2020.12.5 py38h578d9bd_1 conda-forge certipy 0.1.3 py_0 cffi 1.14.3 py38h261ae71_2 chardet 3.0.4 py38h06a4308_1003 configurable-http-proxy 4.0.1 node6_0 cryptography 3.2.1 py38h3c74f83_1 curl 7.69.1 hbc83047_0 cycler 0.10.0 pypi_0 pypi decorator 4.4.2 py_0 defusedxml 0.6.0 py_0 entrypoints 0.3 py38_0 fontconfig 2.13.0 h9420a91_0 freetype 2.10.4 h5ab3b9f_0 fribidi 1.0.10 h7b6447c_0 gcc_impl_linux-64 7.3.0 habb00fd_1 gcc_linux-64 7.3.0 h553295d_15 gfortran_impl_linux-64 7.3.0 hdf63c60_1 gfortran_linux-64 7.3.0 h553295d_15 glib 2.66.1 h92f7085_0 graphite2 1.3.14 h23475e2_0 gsl 2.4 h14c3975_4 gxx_impl_linux-64 7.3.0 hdf63c60_1 gxx_linux-64 7.3.0 h553295d_15 harfbuzz 2.4.0 hca77d97_1 icu 58.2 he6710b0_3 idna 2.10 py_0 importlib-metadata 2.0.0 py_1 importlib_metadata 2.0.0 1 intel-openmp 2020.2 254 ipykernel 5.3.4 py38h5ca1d4c_0 ipython 7.18.1 py38h5ca1d4c_0 ipython_genutils 0.2.0 py38_0 jedi 0.17.2 py38_0 jinja2 2.11.2 py_0 joblib 1.0.0 pyhd3eb1b0_0 jpeg 9b h024ee3a_2 jsonschema 3.2.0 py_2 jupyter_client 6.1.7 py_0 jupyter_core 4.7.0 py38h06a4308_0 jupyter_telemetry 0.1.0 py_0 jupyterhub 1.1.0 py38h32f6830_3 conda-forge jupyterhub-base 1.1.0 py38h32f6830_3 conda-forge jupyterhub-systemdspawner 0.15.0 pypi_0 pypi jupyterhub-tmpauthenticator 0.6 pypi_0 pypi jupyterlab_pygments 0.1.2 py_0 kiwisolver 1.3.1 pypi_0 pypi krb5 1.17.1 h173b8e3_0 ld_impl_linux-64 2.33.1 h53a641e_7 libblas 3.9.0 1_h6e990d7_netlib conda-forge libcurl 7.69.1 h20c2e04_0 libedit 3.1.20191231 h14c3975_1 libffi 3.3 he6710b0_2 libgcc 7.2.0 h69d50b8_2 libgcc-ng 9.1.0 hdf63c60_0 libgfortran-ng 7.5.0 hae1eefd_17 conda-forge libgfortran4 7.5.0 hae1eefd_17 conda-forge liblapack 3.9.0 3_h893e4fe_netlib conda-forge libpng 1.6.37 hbc83047_0 libsodium 1.0.18 h7b6447c_0 libssh2 1.9.0 h1ba5d50_1 libstdcxx-ng 9.1.0 hdf63c60_0 libtiff 4.1.0 h2733197_1 libuuid 1.0.3 h1bed415_2 libxcb 1.14 h7b6447c_0 libxml2 2.9.10 hb55368b_3 lz4-c 1.9.2 heb0550a_3 make 4.2.1 h1bed415_1 mako 1.1.3 py_0 markupsafe 1.1.1 py38h7b6447c_0 matplotlib 3.3.3 pypi_0 pypi mistune 0.8.4 py38h7b6447c_1000 mkl 2020.2 256 mkl-service 2.3.0 py38he904b0f_0 mkl_fft 1.2.0 py38h23d657b_0 mkl_random 1.1.1 py38h0573a6f_0 nbclient 0.5.1 py_0 nbconvert 6.0.7 py38_0 nbformat 5.0.8 py_0 ncurses 6.2 he6710b0_1 nest-asyncio 1.4.3 pyhd3eb1b0_0 networkx 2.5 pypi_0 pypi netzoopy 0.7.2 dev_0 nodejs 6.11.2 h3db8ef7_0 notebook 6.1.4 py38_0 numpy 1.19.1 py38hbc911f0_0 numpy-base 1.19.1 py38hfa32c7d_0 oauthenticator 0.11.0 pypi_0 pypi oauthlib 3.1.0 py_0 openssl 1.1.1j h27cfd23_0 packaging 20.4 py_0 pamela 1.0.0 py_0 pandas 1.1.3 py38he6710b0_0 pandoc 2.11 hb0f4dca_0 pandocfilters 1.4.3 py38h06a4308_1 pango 1.45.3 hd140c19_0 parso 0.7.0 py_0 patsy 0.5.1 py38_0 pcre 8.44 he6710b0_0 pexpect 4.8.0 pyhd3eb1b0_3 pickleshare 0.7.5 py38_1000 pillow 8.0.1 pypi_0 pypi pip 20.2.4 py38h06a4308_0 pixman 0.40.0 h7b6447c_0 prometheus_client 0.8.0 py_0 prompt-toolkit 3.0.8 py_0 ptyprocess 0.6.0 pyhd3eb1b0_2 pycparser 2.20 py_2 pycurl 7.43.0.5 py38h1ba5d50_0 pygments 2.7.2 pyhd3eb1b0_0 pyjwt 1.7.1 py38_0 pyopenssl 19.1.0 pyhd3eb1b0_1 pyparsing 2.4.7 py_0 pyrsistent 0.17.3 py38h7b6447c_0 pysocks 1.7.1 py38h06a4308_0 python 3.8.5 h7579374_1 python-dateutil 2.8.1 py_0 python-editor 1.0.4 py_0 python-igraph 0.8.3 pypi_0 pypi python-json-logger 2.0.1 py_0 python_abi 3.8 1_cp38 conda-forge pytz 2020.1 py_0 pyzmq 19.0.2 py38he6710b0_1 r-acepack 1.4.1 r36h31ca83e_1006 conda-forge r-askpass 1.0 r36h14c3975_0 r-assertthat 0.2.1 r36h6115d3f_2 conda-forge r-backports 1.2.0 r36h9e2df91_0 conda-forge r-base 3.6.1 haffb61f_2 r-base64enc 0.1_3 r36hcdcec82_1004 conda-forge r-brio 1.1.0 r36h9e2df91_1 conda-forge r-callr 3.5.1 r36h142f84f_0 conda-forge r-checkmate 2.0.0 r36hcdcec82_1 conda-forge r-class 7.3_17 r36hcdcec82_1 conda-forge r-cli 2.2.0 r36hc72bb7e_0 conda-forge r-cluster 2.1.0 r36h31ca83e_4 conda-forge r-colorspace 2.0_0 r36h9e2df91_0 conda-forge r-crayon 1.3.4 r36h6115d3f_1003 conda-forge r-curl 3.3 r36h96ca727_0 r-data.table 1.13.2 r36h0eb13af_0 conda-forge r-deoptimr 1.0_8 r36h6115d3f_1003 conda-forge r-desc 1.2.0 r36h6115d3f_1003 conda-forge r-diffobj 0.3.2 r36h9e2df91_1 conda-forge r-digest 0.6.27 r36h1b71b39_0 conda-forge r-diptest 0.75_7 r36hcdcec82_1003 conda-forge r-ellipsis 0.3.1 r36hcdcec82_0 conda-forge r-evaluate 0.14 r36h6115d3f_2 conda-forge r-fansi 0.4.1 r36hcdcec82_1 conda-forge r-farver 2.0.3 r36h0357c0b_1 conda-forge r-flexmix 2.3_17 r36h142f84f_0 conda-forge r-foreign 0.8_71 r36h96ca727_0 r-formula 1.2_4 r36h142f84f_0 conda-forge r-fpc 2.2_8 r36h6115d3f_0 conda-forge r-ggplot2 3.3.2 r36hc72bb7e_1 conda-forge r-ggthemes 4.2.4 r36hc72bb7e_0 conda-forge r-glue 1.4.2 r36hcdcec82_0 conda-forge r-gridextra 2.3 r36h6115d3f_1003 conda-forge r-gtable 0.3.0 r36h6115d3f_3 conda-forge r-highr 0.8 r36h6115d3f_2 conda-forge r-hmisc 4.2_0 r36ha65eedd_0 r-htmltable 2.1.0 r36h6115d3f_0 conda-forge r-htmltools 0.3.6 r36h29659fb_0 r-htmlwidgets 1.3 r36h6115d3f_0 r-httr 1.4.0 r36h6115d3f_0 r-igraph 1.2.4.1 r36h80f5a37_0 r-isoband 0.2.2 r36h0357c0b_0 conda-forge r-jpeg 0.1_8.1 r36hcdcec82_1 conda-forge r-jsonlite 1.6 r36h96ca727_0 r-kernlab 0.9_29 r36h51c796c_2 conda-forge r-knitr 1.30 r36h6115d3f_0 conda-forge r-labeling 0.4.2 r36h142f84f_0 conda-forge r-lattice 0.20_41 r36hcdcec82_2 conda-forge r-latticeextra 0.6_29 r36h6115d3f_1 conda-forge r-lifecycle 0.2.0 r36h6115d3f_1 conda-forge r-magrittr 1.5 r36h6115d3f_4 r-markdown 1.1 r36hcdcec82_1 conda-forge r-mass 7.3_53 r36hcdcec82_0 conda-forge r-matrix 1.2_17 r36h96ca727_0 r-mclust 5.4.7 r36h24033a4_0 conda-forge r-mgcv 1.8_33 r36h7fa42b6_0 conda-forge r-mime 0.6 r36h96ca727_0 r-modeltools 0.2_23 r36h6115d3f_1 conda-forge r-munsell 0.5.0 r36h6115d3f_1003 conda-forge r-nlme 3.1_150 r36h31ca83e_0 conda-forge r-nnet 7.3_14 r36hcdcec82_1 conda-forge r-openssl 1.3 r36h96ca727_0 r-permute 0.9_5 r36h6115d3f_3 conda-forge r-pillar 1.4.7 r36hc72bb7e_0 conda-forge r-pkgbuild 1.1.0 r36h6115d3f_0 conda-forge r-pkgconfig 2.0.2 r36h6115d3f_0 r-pkgload 1.1.0 r36h0357c0b_0 conda-forge r-png 0.1_7 r36hcdcec82_1004 conda-forge r-prabclus 2.3_2 r36h6115d3f_1 conda-forge r-praise 1.0.0 r36h6115d3f_1004 conda-forge r-prettyunits 1.1.1 r36h6115d3f_1 conda-forge r-processx 3.4.4 r36hcdcec82_0 conda-forge r-ps 1.4.0 r36h0eb13af_0 conda-forge r-purrr 0.3.4 r36hcdcec82_1 conda-forge r-pvclust 2.2_0 r36_1 conda-forge r-r6 2.4.0 r36h6115d3f_0 r-rcolorbrewer 1.1_2 r36h6115d3f_1003 conda-forge r-rcpp 1.0.1 r36h29659fb_0 r-rcppcnpy 0.2.10 r36h0357c0b_2 conda-forge r-rematch2 2.1.2 r36h6115d3f_1 conda-forge r-reticulate 1.12 r36h29659fb_0 r-rlang 0.4.8 r36h9e2df91_0 conda-forge r-robustbase 0.93_6 r36hc3f0d1c_2 conda-forge r-rpart 4.1_15 r36hcdcec82_2 conda-forge r-rprojroot 2.0.2 r36hc72bb7e_0 conda-forge r-rstudioapi 0.13 r36hc72bb7e_0 conda-forge r-scales 1.1.1 r36h6115d3f_0 conda-forge r-stringi 1.4.3 r36h29659fb_0 r-stringr 1.4.0 r36h6115d3f_2 conda-forge r-survival 3.2_7 r36hcdcec82_0 conda-forge r-sys 3.2 r36h96ca727_0 r-testthat 3.0.0 r36he524a50_0 conda-forge r-tibble 3.0.4 r36h0eb13af_0 conda-forge r-utf8 1.1.4 r36hcdcec82_1003 conda-forge r-vctrs 0.3.5 r36h9e2df91_0 conda-forge r-vegan 2.5_6 r36hc3f0d1c_3 conda-forge r-viridis 0.5.1 r36h6115d3f_1004 conda-forge r-viridislite 0.3.0 r36h6115d3f_1003 conda-forge r-visnetwork 2.0.6 r36h6115d3f_0 r-waldo 0.2.3 r36hc72bb7e_0 conda-forge r-withr 2.3.0 r36h6115d3f_0 conda-forge r-xfun 0.19 r36h9e2df91_0 conda-forge r-yaml 2.2.0 r36h96ca727_0 r-zeallot 0.1.0 r36h6115d3f_1002 conda-forge readline 8.0 h7b6447c_0 requests 2.24.0 py_0 ruamel.yaml 0.16.12 py38h7b6447c_1 ruamel.yaml.clib 0.2.2 py38h7b6447c_0 scikit-learn 0.23.2 py38h0573a6f_0 scipy 1.5.2 py38h0b6359f_0 send2trash 1.5.0 py38_0 setuptools 50.3.1 py38h06a4308_1 six 1.15.0 py38h06a4308_0 sqlalchemy 1.3.20 py38h7b6447c_0 sqlite 3.33.0 h62c20be_0 statsmodels 0.12.0 py38h7b6447c_0 terminado 0.9.1 py38_0 testpath 0.4.4 py_0 texttable 1.6.3 pypi_0 pypi threadpoolctl 2.1.0 pyh5ca1d4c_0 tk 8.6.10 hbc83047_0 tktable 2.10 h14c3975_0 tornado 6.0.4 py38h7b6447c_1 traitlets 5.0.5 py_0 urllib3 1.25.11 py_0 wcwidth 0.2.5 py_0 webencodings 0.5.1 py38_1 wheel 0.35.1 pyhd3eb1b0_0 xz 5.2.5 h7b6447c_0 zeromq 4.3.3 he6710b0_3 zipp 3.4.0 pyhd3eb1b0_0 zlib 1.2.11 h7b6447c_3 zstd 1.4.5 h9ceee32_0

# jupyterhub_config.py