Commit Graph

172 Commits

Author SHA1 Message Date
Min RK
4d73f4eedb note that admin is a single value 2015-05-06 15:35:23 -07:00
Min RK
612cc73c3c skip existing users on bulk user creation
rather than aborting if any already exist

if no users are to be created, throw 400
2015-05-06 15:24:34 -07:00
Min RK
c9d02382e3 fixup 2015-05-06 15:14:08 -07:00
Min RK
546d86e888 allow creating multiple users with one API request 2015-05-06 14:01:31 -07:00
Min RK
c467c64e01 move user_model handling to base APIHandler 2015-05-01 13:41:08 -07:00
Min RK
5f1abf4461 check user.running in delete handler
missed a spot in #147
2015-02-19 20:36:02 +01:00
Min RK
edfb39c74c Merge pull request #148 from minrk/poke-proxy-api
add proxy API
2015-02-08 10:24:42 -08:00
Min RK
c82903b85e add 'pending' to user REST model 2015-02-08 10:19:48 -08:00
Min RK
4fd58b2bf2 add proxy API
- GET fetches proxy table (relays same request to proxy's API endpoint)
- POST prods routing table sync (useful when proxy restarts)
- PATCH allows updating the proxy API location, auth token
2015-02-06 17:06:41 -08:00
Min RK
b5eda9d785 add User.running
as the one true way to check whether a user is running or not

User.running will be True if spawn or stop is pending.
2015-02-06 15:42:57 -08:00
Min RK
f2b818e685 Merge pull request #132 from minrk/admin-access
add JupyterHub.admin_access
2015-01-31 16:48:32 -08:00
Min RK
09d9efb44c handle Spawners that are slow to stop
e.g. docker, which can take a long time to stop,
especially if several docker actions are already queued.

Use status `202: Accepted` for API replies sent with spawn/stop still pending
2015-01-28 11:35:38 -08:00
Min RK
6b9f73ba1f add JupyterHub.admin_access
optionally allow admin users to login to user servers by visiting a special admin-only URL that sets the relevant cookie

- disabled by default
- an 'access server' button is added to the admin panel, which sets the necessary cookie to log in to the user server
2015-01-27 17:04:30 -08:00
Min RK
d657d42c9a allow some auth methods to be async
- add_user
- add_system_user
- system_user_exists
- delete_user
2015-01-12 16:26:37 -08:00
Min RK
e066ac1863 add last_activity to user API model 2015-01-06 15:41:41 -08:00
Min RK
40a99e61ac drop support for old Python, IPython < 3
Require IPython >= 3.0, Python >= 3.3
2014-11-02 15:51:06 -08:00
MinRK
e2f12f7071 raise 400 when failing to create users 2014-09-25 14:49:06 -07:00
MinRK
1a29328d06 Add Authenticator.add_user hook
and .delete_user

This hook can be used to trigger events,
such as user validation, or creating of system users.

Adds a LocalAuthenticator class that implements
checking for and rudimentary creation of system users.
2014-09-24 21:51:25 -07:00
MinRK
485ddd039c check if spawners are running before starting new ones 2014-09-21 22:44:51 -07:00
MinRK
294fa8ceb6 add/remove users from whitelist when adding/deleting 2014-09-15 01:21:01 -07:00
MinRK
0a8759b0a5 flesh out REST API
can now list/view/add/create/modify users
and start/stop single-user servers
2014-09-14 16:47:09 -07:00
MinRK
833835b0f3 add user list handler, first of many 2014-09-14 11:54:37 -07:00