Skip to main content

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)

Metadata

Release files for jupyterhub_oauth_spawner 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyterhub_oauth_spawner 0.0.7
File Size Uploaded Provenance
jupyterhub_oauth_spawner-0.0.7.tar.gz 3.7 kB Without provenance Details

Release files / jupyterhub_oauth_spawner-0.0.7.tar.gz

Download URL jupyterhub_oauth_spawner-0.0.7.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d414df4fa4ee34d54e6b13a2ecbb25b6180efb955663b1611f373f5b13cc5dc2
BLAKE2b-256 checksum
How to use checksums
ca7c8f61b50923c4fe3aff96adccc84c6548daa09bf9049597f156cf58ea2557
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for jupyterhub_oauth_spawner 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page