MinRK
363d81a380
fix inverted logic in Server.is_up()
2014-09-21 22:44:50 -07:00
MinRK
3a0f19f1a4
cookie_secret is no longer bytes
...
add utils.random_hex for generating a unicode object
with random hex bytes
2014-09-21 22:44:50 -07:00
MinRK
2eb42eb0b3
add orm.User.find and orm.[Foo]Token.find
...
for simple get-by-name access
2014-09-21 22:44:50 -07:00
Min RK
cf64828d32
Merge pull request #46 from minrk/setuid-env
...
fix env when using setuid
2014-09-21 18:00:57 -07:00
MinRK
6f9b5107d2
mock out user-env
...
since tests don't use real users
2014-09-21 15:22:39 -07:00
Min RK
e4848e6432
Merge pull request #47 from minrk/single-user-auth-failure
...
handle failure to check authorization
2014-09-21 15:17:17 -07:00
MinRK
2cc0b1fbab
handle failure to check authorization
...
JPY_* auth env variables are non-optional.
Refuse to start if they are undefined.
2014-09-21 15:13:52 -07:00
MinRK
b685ed902e
fix env when using setuid
...
avoids subprocess identifying as root
2014-09-21 15:03:25 -07:00
MinRK
2bcc25e31d
add Spawner.debug
...
for easy debugging of the single-process output
2014-09-21 15:00:38 -07:00
Min RK
6aa3e897ce
Merge pull request #45 from minrk/singleuser-logout
...
send single-user logout to the Hub logout page
2014-09-21 13:46:35 -07:00
MinRK
deae294858
use 302 redirects
2014-09-21 13:45:51 -07:00
Min RK
50105b9e96
Merge pull request #44 from Carreau/fix-redirect
...
add some redirects
2014-09-21 13:43:32 -07:00
MinRK
54d63c19ea
send single-user logout to the Hub logout page
2014-09-21 13:41:41 -07:00
Matthias Bussonnier
d56e8b9186
fix some redirect.
...
login redict to home if already loged in
/hub redirect to /hub/
2014-09-21 19:56:54 +02:00
Min RK
7b2fd29657
Merge pull request #42 from minrk/master
...
pass config to spawner
2014-09-20 18:34:27 -07:00
MinRK
45e1822a2e
setgid and chdir before setuid
2014-09-20 18:31:27 -07:00
MinRK
0a2ddb7994
pass config to spawner
2014-09-20 18:31:00 -07:00
Min RK
f4544eb3e9
Merge pull request #41 from minrk/kernel_argv_2.x
...
don't pass notebook app args to kernel
2014-09-20 13:10:23 -07:00
MinRK
93a9acfa21
don't pass notebook app args to kernel
...
2.x compatibility fix
2014-09-20 12:13:24 -07:00
Min RK
43113689b5
Merge pull request #38 from minrk/restart-proxy
...
restart the proxy if it goes down
2014-09-19 17:25:09 -07:00
MinRK
82c06ebe98
always use transient IOLoop for run_sync
2014-09-19 17:21:55 -07:00
MinRK
24eebd94e4
make HTTP requests to the proxy async
2014-09-18 17:16:33 -07:00
MinRK
58b32f634a
restart the proxy if it goes down
...
and populate its table from the database
2014-09-18 17:04:17 -07:00
MinRK
6106fecd48
raise TimeoutError in wait_for_server
2014-09-18 16:07:44 -07:00
MinRK
a77e106488
move some utility functions to ORM classes
...
simplify handler methods
2014-09-18 15:37:39 -07:00
MinRK
67e2a71d8c
log unexpected errors in wait_for_server
2014-09-18 15:01:16 -07:00
MinRK
3181520e56
check for IPython >= 2.2
2014-09-17 12:09:46 -07:00
MinRK
97ac3ebf32
make hub-starting user admin by default
2014-09-16 16:19:15 -07:00
Min RK
216f12a5d9
Merge pull request #35 from minrk/config
...
add basic CLI and config file support
2014-09-16 16:09:15 -07:00
Min RK
e674eab8e0
Merge pull request #36 from minrk/async-wait
...
make wait_for_server async
2014-09-16 15:18:31 -07:00
MinRK
81c71a7f45
add missing yield for notify_proxy coroutine
2014-09-16 15:12:35 -07:00
MinRK
46b3e11110
make wait_for_server async
2014-09-16 15:02:42 -07:00
MinRK
83e9762845
add basic CLI and config file support
...
See `jupyterhub -h` for common shortcuts
default config file: `jupyter_hub_config.py`
generate config file with: `jupyterhub --generate-config`
non-default config file: `jupyterhub -f myconfig.py`
2014-09-16 14:47:48 -07:00
Min RK
e7f67bfc4f
Merge pull request #34 from minrk/admin.html
...
expand admin HTML page
2014-09-15 15:37:34 -07:00
MinRK
c8832008e8
don't render delete-user button for self
2014-09-15 01:54:55 -07:00
MinRK
48eeee0946
add admin.js
2014-09-15 01:45:12 -07:00
MinRK
eef2aff22f
simplify dialog HTML with template macros
2014-09-15 01:44:32 -07:00
MinRK
7f23c132f0
expand admin HTML page
...
can add/delete users, and start/stop user servers
2014-09-15 01:21:49 -07:00
MinRK
294fa8ceb6
add/remove users from whitelist when adding/deleting
2014-09-15 01:21:01 -07:00
Kyle Kelley
315accc4b9
Ensure python3 is aliased
2014-09-15 00:34:02 +00:00
Min RK
ac6b4788a5
Merge pull request #30 from minrk/restapi
...
getting started with REST API
2014-09-14 16:53:24 -07:00
MinRK
c93f17c324
add basic home, admin pages
...
- index no longer requires login, it's just a big fat login button
- home has stop, start, admin buttons
- admin doesn't do anything yet
- add jhapi javascript client for REST API
2014-09-14 16:47:10 -07:00
MinRK
b24e47d94a
some updates to login redirects
...
/anything served by Hub redirects to /hub/anything
/hub/user/[user] spawns single-user server and redirects to it
2014-09-14 16:47:09 -07:00
MinRK
5cba7c50b2
update base page template
...
- no body params, just write jhapi globals instead
- baseUrl is static/js
2014-09-14 16:47:09 -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
a47e390aa0
add mock single-user server for testing
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
MinRK
970e4d2ce2
minor fixes to testing utils
2014-09-14 11:54:37 -07:00
MinRK
a245641886
simplify handler setup with default_handlers in modules
...
like IPython's, but a bit simpler since we don't have
so many services to deal with.
2014-09-14 11:54:37 -07:00
MinRK
53edc0b2f7
add a notion of admin users
...
and an @admin_only decorator for restricted methods
2014-09-14 11:54:05 -07:00