Add hook for custom jupyterhub_config.py content

This lets extensions directly control how JupyterHub
is configured
This commit is contained in:
yuvipanda
2019-05-31 23:35:08 -07:00
parent 77dc6a0e27
commit b584bd1b2a
4 changed files with 27 additions and 2 deletions

View File

@@ -35,4 +35,8 @@ def tljh_config_post_install(config):
# Put an arbitrary marker we can test for
config['simplest_plugin'] = {
'present': True
}
}
@hookimpl
def tljh_custom_jupyterhub_config(c):
c.JupyterHub.authenticator_class = 'tmpauthenticator.TmpAuthenticator'