Skip to content

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

License

Notifications You must be signed in to change notification settings

tezignlab/jupyterhub-feishu-oauthenticator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages