mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-08 02:24:08 +00:00
Add DummyAuthenticator
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user