mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
@@ -199,6 +199,14 @@ def update_userlists(c, config):
|
||||
"""
|
||||
users = config["users"]
|
||||
|
||||
if (
|
||||
not users["allowed"]
|
||||
and config["auth"]["type"] == default["auth"]["type"]
|
||||
and "allow_all" not in c.FirstUseAuthenticator
|
||||
):
|
||||
# _default_ authenticator, enable allow_all if no users specified
|
||||
c.FirstUseAuthenticator.allow_all = True
|
||||
|
||||
c.Authenticator.allowed_users = set(users["allowed"])
|
||||
c.Authenticator.blocked_users = set(users["banned"])
|
||||
c.Authenticator.admin_users = set(users["admin"])
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# If a dependency is bumped to a new major version, we should make a major
|
||||
# version release of tljh.
|
||||
#
|
||||
jupyterhub>=4.0.2,<5
|
||||
jupyterhub>=5.1.0,<6
|
||||
jupyterhub-systemdspawner>=1.0.1,<2
|
||||
jupyterhub-firstuseauthenticator>=1.0.0,<2
|
||||
jupyterhub-nativeauthenticator>=1.2.0,<2
|
||||
|
||||
Reference in New Issue
Block a user