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
|
# User provided config is merged into this
|
||||||
default = {
|
default = {
|
||||||
'auth': {
|
'auth': {
|
||||||
'type': 'dummy',
|
'type': 'firstuse',
|
||||||
'dummy': {}
|
'dummy': {}
|
||||||
},
|
},
|
||||||
'users': {
|
'users': {
|
||||||
@@ -60,6 +60,8 @@ def update_auth(c, config):
|
|||||||
if password is not None:
|
if password is not None:
|
||||||
c.DummyAuthenticator.password = password
|
c.DummyAuthenticator.password = password
|
||||||
return
|
return
|
||||||
|
elif auth['type'] == 'firstuse':
|
||||||
|
c.JupyterHub.authenticator_class = 'firstuseauthenticator.FirstUseAuthenticator'
|
||||||
|
|
||||||
|
|
||||||
def update_userlists(c, config):
|
def update_userlists(c, config):
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ def ensure_jupyterhub_package(prefix):
|
|||||||
conda.ensure_pip_packages(prefix, [
|
conda.ensure_pip_packages(prefix, [
|
||||||
'jupyterhub-dummyauthenticator==0.3.1',
|
'jupyterhub-dummyauthenticator==0.3.1',
|
||||||
'jupyterhub-systemdspawner==0.9.12',
|
'jupyterhub-systemdspawner==0.9.12',
|
||||||
|
'jupyterhub-firstuseauthenticator==0.9'
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user