Skip to main content

Fabric Authenticator for Jupyterhub

Project description

Fabric Authenticator for Jupyterhub

The authenticator for Fabric Testbed Jupyterhub Based on CILogon authentication, in addition it checks if user belongs to Fabric JUPYTERHUB COU group

Usage

If using dockerspawner:

In jupyter_config.py: If using Fabric CI Logon Authenticator

   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"

If using Fabric Vouch Proxy Authenticator

c.JupyterHub.authenticator_class = 'fabricauthenticator.vouch_proxy_authenticator.VouchProxyAuthenticator'

if using KubeSpawner

in config.yaml: If using Fabric CI Logon Authenticator

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

If using Fabric Vouch Proxy Authenticator

hub:
  extraConfig:
    authconfig: |
      c.Authenticator.enable_auth_state = True
auth:
  type: custom
  custom:
      className: fabricauthenticator.vouch_proxy_authenticator.VouchProxyAuthenticator

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fabricauthenticator-0.0.1.9.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

fabricauthenticator-0.0.1.9-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page