FeiShu OAuthenticator for Jupyterhub
Project description
JupyterHub FeiShu OAuthenticator
JupyterHub FeiShu Authenticator is a FeiShu OAuth authenticator built on top of OAuthenticator.
Installing
feishuoauthenticator is a package available on PyPI and can be installed using pip or cloning the repository.
pip3 install feishuoauthenticator
or clone the repository
git clone https://github.com/tezignlab/jupyterhub_feishu_authenticator.git
cd jupyterhub_feishu_authenticator
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
Release history Release notifications | RSS feed
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-feishu-oauthenticator-0.1.0.tar.gz.
File metadata
- Download URL: jupyterhub-feishu-oauthenticator-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c84a8a778bda578892190d226b12e436b06bb5777627b7248901cc48c094e509
|
|
| MD5 |
88880ad5b2eb345ec03124036be19266
|
|
| BLAKE2b-256 |
ba1fceb97529d8ccac25b904e10f352bba8077f30a0bd58e4b63be667fddfde3
|