跳转到主要内容

具有OAuth身份验证的jupyterhub孵化器。

项目描述

OAuth身份验证用户的孵化器。此孵化器使用与OS操作相同的Jupyterhub用户,但您可以控制OAuth用户。

安装

pip install jupyterhub_oauth_spawner

在您的jupyterhub配置文件中

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 应该期望一个具有属性 user_objectname 用于用户登录和 hook_name 调用的钩子。

所以,在您的函数中

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

项目详情


下载文件

下载您平台上的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分布

jupyterhub_oauth_spawner-0.0.7.tar.gz (3.7 kB 查看哈希值)

上传时间:

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面