Make firstuseauthenticator the default

Fixes #14
This commit is contained in:
yuvipanda
2018-07-03 11:54:42 -07:00
parent 3ee26118ae
commit 2b20a0b766
2 changed files with 4 additions and 1 deletions

View File

@@ -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):

View File

@@ -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'
]) ])