Disable user creation by default

With firstuseauthenticator, users need to be manually created
in the admin console before they can log in. This makes for a
far more secure default experience.
This commit is contained in:
yuvipanda
2018-07-03 16:28:20 -07:00
parent 154cc00a31
commit d7ddbf2a32

View File

@@ -16,7 +16,10 @@ import yaml
default = {
'auth': {
'type': 'firstuse',
'dummy': {}
'dummy': {},
'firstuse': {
'createUsers': False
}
},
'users': {
'allowed': [],
@@ -62,6 +65,7 @@ def update_auth(c, config):
return
elif auth['type'] == 'firstuse':
c.JupyterHub.authenticator_class = 'firstuseauthenticator.FirstUseAuthenticator'
c.FirstUseAuthenticator.create_users = auth['firstuse']['createUsers']
def update_userlists(c, config):