Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lots of hardcoded stuff and assumptions, but works as expected. It can be run as a service with a config like this ``` c.JupyterHub.load_roles = [ { "name": "jwt", "scopes": [ "read:users:activity", # read user last_activity "servers", # start and stop servers "admin:users", # needed if culling idle users as well ], }, { "name": "user", "scopes": ["access:services", "self"], }, ] c.JupyterHub.services = [ { "name": "jwt", "url": "http://localhost:1984/", # any secret >8 characters, you'll use api_token to # authenticate api requests to the hub from your service "api_token": "super-secret", } ] ``` and then start the service: ``` fastapi dev --port 1984 api_wrapper.py ```
- Loading branch information