Spawner for jupyterhub with oauth authentication.
Project description
# JupyterHub OAuth Spawner
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)
```
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)
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for jupyterhub_oauth_spawner-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f80bf8a535a49ad89d375000d60fcec7a7a77063d71fc34685a0434ef04c565d |
|
MD5 | 494ebc0005b04448f69386b6c34735ef |
|
BLAKE2b-256 | 75711e271b08af20c86cb8aced379abb61614f1d51ca6ba97aad0985eeabe921 |