默认的认证器是PAM,从而认证系统用户。
白名单
设置可以直接登录的用户的白名单
c.Authenticator.whitelist = {'mal', 'zoe', 'inara', 'kaylee'}
管理员
JupyterHub的管理员可以对白名单进行修改
c.Authenticator.admin_users = {'mal', 'zoe'}
管理员权限
默认,JupyterHub.admin_access
是False,因此管理员没有权限登录属于他人的single user notebook server。
当设置为True时,管理员就有权登录其他用户的notebook server。
添加/删除用户
用户可以通过admin管理面板或REST API添加或删除。当用户添加时,它会自动添加到whitelist和数据库。
LocalAuthenticator
LocalAuthenticator是在本地系统管理用户的认证器,当向Hub添加用户时,它会检查用户是否存在。
如果配置create_system_user
为True,LocalAuthenticator会添加系统用户
c.LocalAuthenticator.create_system_users = True
OAuthenticator
JupyterHub的OAuthenticator支持:
Auth0
Bitbucket
CILogon
GitHub
GitLab
Globus
Google
Media Wiki
Okpy
OpenShift