mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 06:52:59 +00:00
add JupyterHub.admin_access
optionally allow admin users to login to user servers by visiting a special admin-only URL that sets the relevant cookie - disabled by default - an 'access server' button is added to the admin panel, which sets the necessary cookie to log in to the user server
This commit is contained in:
@@ -321,6 +321,12 @@ class JupyterHub(Application):
|
||||
db = Any()
|
||||
session_factory = Any()
|
||||
|
||||
admin_access = Bool(False, config=True,
|
||||
help="""Grant admin users permission to access single-user servers.
|
||||
|
||||
Users should be properly informed if this is enabled.
|
||||
"""
|
||||
)
|
||||
admin_users = Set(config=True,
|
||||
help="""set of usernames of admin users
|
||||
|
||||
@@ -708,6 +714,7 @@ class JupyterHub(Application):
|
||||
proxy=self.proxy,
|
||||
hub=self.hub,
|
||||
admin_users=self.admin_users,
|
||||
admin_access=self.admin_access,
|
||||
authenticator=self.authenticator,
|
||||
spawner_class=self.spawner_class,
|
||||
base_url=self.base_url,
|
||||
|
Reference in New Issue
Block a user