Skip to main content

Spawner for jupyterhub with oauth authentication.

Project description

Spawner for OAuth authentication users. This Spawner uses same Jupyterhub user for OS operations, but you can control OAuth Users.


pip install jupyterhub_oauth_spawner

In your jupyterhub config file:

from jupyterhub_oauth_spawner.oauth_spawner import OAuthSpawner

c.JupyterHub.spawner_class = OAuthSpawner

c.OAuthSpawner.pre_start_hook = your_function
c.OAuthSpawner.pre_stop_hook = your_function
c.OAuthSpawner.post_start_hook = your_function
c.OAuthSpawner.post_stop_hook = your_function

your_function should expect an user_object with attributes name for user login and hook_name with hook called.

So in your function:

your_function(user, hook_name):
    send_info(, hook_name)

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
jupyterhub_oauth_spawner-0.0.7.tar.gz (3.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page