Fabric OAuth 认证器
项目描述
Fabric Authenticator for Jupyterhub
基于CILogon认证的Fabric Testbed Jupyterhub认证器,它还检查用户是否属于Fabric JUPYTERHUB COU组
用法
如果使用dockerspawner
在jupyter_config.py中
import fabricauthenticator
c.JupyterHub.authenticator_class = 'fabricauthenticator.FabricAuthenticator'
c.Authenticator.enable_auth_state = True
# set the OIDC client info in following CILogon configuration
c.CILogonOAuthenticator.client_id = ""
c.CILogonOAuthenticator.client_secret = ""
c.CILogonOAuthenticator.oauth_callback_url = "<host>/hub/oauth_callback"
如果使用KubeSpawner
在config.yaml中
hub:
extraConfig:
authconfig: |
c.Authenticator.enable_auth_state = True
c.CILogonOAuthenticator.client_id = ""
c.CILogonOAuthenticator.client_secret = ""
c.CILogonOAuthenticator.oauth_callback_url = "<host>/hub/oauth_callback"
auth:
type: custom
custom:
className: fabricauthenticator.FabricAuthenticator