Skip to main content

FeiShu OAuthenticator for Jupyterhub

Project description

JupyterHub FeiShu OAuthenticator

JupyterHub FeiShu Authenticator is a FeiShu OAuth authenticator built on top of OAuthenticator.

Installing

jupyterhub-feishu-oauthenticator is a package available on PyPI and can be installed using pip or cloning the repository.

pip3 install jupyterhub-feishu-oauthenticator

or clone the repository

git clone https://github.com/tezignlab/jupyterhub-feishu-oauthenticator.git

cd jupyterhub-feishu-oauthenticator

pip3 install -e .

Setup

1、Create FeiShu App

see feishu doc Create a custom app

2、Config Your FeiShu App

"Security Settings" --> "Redirect URL" --> Add http://[your-host]/hub/oauth_callback

3、Edit JupyterHub Config File jupyterhub_config.py

from feishuoauthenticator import FeiShuOAuthenticator
c.JupyterHub.authenticator_class = FeiShuOAuthenticator

app_id = '[your-feishu-app-id]'
app_secret = '[your-feishu-app-secret]'
c.FeiShuOAuthenticator.authorize_url = 'https://open.feishu.cn/open-apis/authen/v1/index'
c.FeiShuOAuthenticator.extra_authorize_params = {
    'redirect_uri': 'http://[your-host]/hub/oauth_callback',
    'app_id': app_id
}
c.FeiShuOAuthenticator.client_id = app_id
c.FeiShuOAuthenticator.client_secret = app_secret

Team

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

jupyterhub-feishu-oauthenticator-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file jupyterhub-feishu-oauthenticator-0.1.1.tar.gz.

File metadata

  • Download URL: jupyterhub-feishu-oauthenticator-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

File hashes

Hashes for jupyterhub-feishu-oauthenticator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5f87b9dfd635dbf001afe93139191a68195fe8e0f7414d51d2cb030381bd3903
MD5 bd35b50d77ca9feb5e00764a89537b7b
BLAKE2b-256 c284e7e0091b4b0fe204ec61902b2155ac0d157d554f144925a68b7b69c1df09

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page