Add DummyAuthenticator

This commit is contained in:
Kyla Harper
2018-09-25 15:44:05 -05:00
parent 451dccfbf4
commit b43125e9e8
2 changed files with 23 additions and 7 deletions

View File

@@ -1,3 +1,5 @@
from jupyterhub.auth import DummyAuthenticator
"""sample jupyterhub config file for testing
configures jupyterhub with dummyauthenticator and simplespawner
@@ -5,13 +7,7 @@ to enable testing without administrative privileges.
"""
c = get_config() # noqa
try:
from dummyauthenticator import DummyAuthenticator
except ImportError:
print("dummyauthenticator not available. Try: `pip install jupyterhub-dummyauthenticator`")
else:
c.JupyterHub.authenticator_class = DummyAuthenticator
c.JupyterHub.authenticator_class = DummyAuthenticator
try:
from simplespawner import SimpleLocalProcessSpawner