mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
@@ -15,7 +15,7 @@ import yaml
|
||||
# User provided config is merged into this
|
||||
default = {
|
||||
'auth': {
|
||||
'type': 'dummy',
|
||||
'type': 'firstuse',
|
||||
'dummy': {}
|
||||
},
|
||||
'users': {
|
||||
@@ -60,6 +60,8 @@ def update_auth(c, config):
|
||||
if password is not None:
|
||||
c.DummyAuthenticator.password = password
|
||||
return
|
||||
elif auth['type'] == 'firstuse':
|
||||
c.JupyterHub.authenticator_class = 'firstuseauthenticator.FirstUseAuthenticator'
|
||||
|
||||
|
||||
def update_userlists(c, config):
|
||||
|
||||
@@ -62,6 +62,7 @@ def ensure_jupyterhub_package(prefix):
|
||||
conda.ensure_pip_packages(prefix, [
|
||||
'jupyterhub-dummyauthenticator==0.3.1',
|
||||
'jupyterhub-systemdspawner==0.9.12',
|
||||
'jupyterhub-firstuseauthenticator==0.9'
|
||||
])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user