Spawner for OAuth authentication users. This Spawner uses same Jupyterhub user for OS operations, but you can control OAuth Users.
Install
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(user.name, hook_name)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file jupyterhub_oauth_spawner-0.0.7.tar.gz.
File metadata
- Download URL: jupyterhub_oauth_spawner-0.0.7.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d414df4fa4ee34d54e6b13a2ecbb25b6180efb955663b1611f373f5b13cc5dc2
|
|
| MD5 |
188e0e58d6b38471a2c0a320c6c8d0d9
|
|
| BLAKE2b-256 |
ca7c8f61b50923c4fe3aff96adccc84c6548daa09bf9049597f156cf58ea2557
|