oauth背后的简单http服务器
Janitor的Python项目详细描述
janitor是一个简单的http服务器,支持oauth身份验证。
安装门卫:
$ pip install janitor
编写配置文件:
$ cat example.cfg [janitor] host = 127.0.0.1 port = 8000 secret_key = realsecretkey123123 base_dir = /path/to/protected/files [auth] service = github client_id = githubapplicationclientid client_secret = githubapplicationclientsecret allowed_orgs = MyGHOrg
与门卫一起运行应用程序:
$ janitor -c example.cfg