Min RK
50d1f78b61
add control panel link to single-user header
...
This is done by defining the `headingcontainer` block as a function, and inserting it into the template rendering.
Without monkeypatching, we could use a custom template file,
but that would make the single-user server require its own template path,
while it currently functions as a fully encapsulated single script.
2015-03-31 13:58:07 -07:00
Min RK
ab0010fa32
finish removing logout page
2015-03-31 13:56:49 -07:00
Min RK
1bc8d50261
add "Login with..." button
...
for custom authenticators that use external services (e.g. OAuth)
2015-03-31 13:56:49 -07:00
Min RK
24fd843c3c
render login form at root
...
- redirect to server, if running (hub home, otherwise)
2015-03-31 13:56:49 -07:00
Min RK
cffdf89327
remove logout page
...
redirect to landing page, instead
2015-03-31 13:56:49 -07:00
Min RK
2e53de0459
Merge pull request #216 from minrk/allow_none
...
add missing allow_none=True in Spawner
2015-03-31 13:56:19 -07:00
Kyle Solan
80531341c0
switched app and singleuser to run under python3 by default
2015-03-31 19:54:13 +00:00
Min RK
94a3584620
Merge pull request #215 from minrk/cunicode-user
...
cast user to unicode
2015-03-30 13:19:51 -07:00
Min RK
12a1ec7f57
add missing allow_none=True in Spawner
2015-03-30 13:18:09 -07:00
Min RK
d13286606a
cast user to unicode
...
allows numerical usernames without fighting with the config system.
2015-03-30 11:23:52 -07:00
Min RK
e39e6d2073
Merge pull request #211 from peterruppel/patch-1
...
Make the hub bind to address specified in hub_ip
2015-03-24 16:31:54 -07:00
Peter Ruppel
904c848bcc
Make the hub bind to address specified in hub_ip
...
Bug: the hub binds to all interfaces and ignores the address given in 'hub_ip'. The 'address' parameter was missing in the call http_server.listen().
2015-03-24 20:15:29 +01:00
Min RK
038aae7e0a
Merge pull request #208 from minrk/log-requests
...
customize request logging
2015-03-24 11:54:04 -07:00
Min RK
ba81bd4a01
Merge pull request #190 from minrk/bind_url
...
url logging
2015-03-24 11:52:33 -07:00
Min RK
36d62672df
Merge pull request #207 from minrk/get-cookie-body
...
use `cookie_name/cookie_value` URL for cookie checking API
2015-03-24 09:48:17 -07:00
Min RK
ffd334b5ff
Merge pull request #189 from jdavidheiser/master
...
set user shel from pw_shell
closes #189
closes #204
2015-03-23 17:55:44 -07:00
James Davidheiser
7701b82f58
replace using server shell with user shell
...
Per discussion on PR, replaced the heavy-handed setting of the shell environment variable through the server environment variables.
2015-03-23 17:55:16 -07:00
James Davidheiser
7ca96e5c6c
spawner.py update for default shell
...
Update spawner.py to do a better job keeping the shell variable intact for terminals launched from within the notebook.
2015-03-23 17:55:16 -07:00
Min RK
3be33f2884
escape cookie value in auth uri
...
requests didn't seem to need it,
but I feel safer doing it explicitly.
2015-03-23 16:17:28 -07:00
Min RK
3d6a0c126f
custom request logging
...
adapted from IPython
- demotes static page success, cache hits to debug-level
- removes auth info from log messages
- logs usernames for authenticated requests
2015-03-23 15:45:57 -07:00
Min RK
39a7feea72
use cookie_name/cookie_value
URL for cookie checking API
...
instead of putting the value in the request body,
which is verboten for GET requests
2015-03-23 15:14:36 -07:00
Min RK
5529774c1d
url logging
...
log the actual bind url (Server.bind_url),
rather than the connect url (Server.url),
which converts all-interfaces IPs to 'localhost'
2015-03-23 12:12:10 -07:00
Min RK
ffb2ba055a
remove inappropriate argv in Hub.instance()
2015-03-23 12:06:07 -07:00
Min RK
2a2f9c0b67
Merge pull request #189 from minrk/timeout-spawn-error
...
better error messages for spawn failure
2015-03-23 11:55:15 -07:00
Min RK
3e89f45954
Merge pull request #197 from minrk/expire-token
...
expire login cookies
2015-03-23 11:51:08 -07:00
Min RK
fad5f5a61d
Merge pull request #200 from quantopian/group_auth
...
DEV: Allow setting a whitelist_group on LocalAuthenticator.
2015-03-22 21:22:49 -07:00
Scott Sanderson
ed94c2d774
BUG: group_whitelist is a set, not a scalar.
2015-03-22 14:51:10 -04:00
Scott Sanderson
77c66d8b27
DEV: Make group/user whitelist mutually exclusive.
...
If group whitelist is provided, it takes precedence.
2015-03-19 10:42:55 -04:00
Scott Sanderson
33a4f31520
DEV: Allow setting a whitelist_group on LocalAuthenticator.
...
Any user in the group is considered in the whitelist.
2015-03-18 19:20:10 -04:00
Min RK
3fb2afc2bd
expire login cookies
...
via tornado's max_age_days mechanism
default expiry is two weeks
2015-03-17 12:56:06 -06:00
Min RK
8787335b01
Merge pull request #196 from quantopian/invalidate-su-cookies
...
DEV: Periodically clear single-user server cookie cache.
2015-03-17 12:46:54 -06:00
Min RK
376ee29b12
Merge pull request #195 from minrk/chp-missing
...
better error when proxy command isn't found
2015-03-17 12:44:30 -06:00
Scott Sanderson
5e16e6f52f
DEV: Periodically clear single-user server cookie cache.
...
Default is every 5 minutes.
2015-03-17 13:48:44 -04:00
Min RK
ce45fde74a
better error when proxy command isn't found
2015-03-17 11:46:12 -06:00
Min RK
665edb6651
Merge pull request #194 from quantopian/handle-404-auth
...
BUG: Correctly handle 404 from hub.
2015-03-17 10:54:38 -06:00
Scott Sanderson
f98c8feaae
BUG: Correctly handle 404 from hub.
...
Previously, the `if r.status_code == 404` branch was being trampled by a
later `if r.status_code > 400` branch.
2015-03-17 12:00:26 -04:00
Min RK
5100dd29c2
note when installing with npm
2015-03-14 14:32:31 -06:00
Min RK
40ae3a5821
Merge pull request #188 from blippy/master
...
Make jupyterhub and jupyterhub-singleuser executable and call python3
2015-03-13 12:57:58 -07:00
Min RK
da1fe54aee
better error messages for spawn failure
...
Server started, but never became accessible:
> Failed to reach your server.
> Please try again later.
> Contact admin if the issue persists.
Server failed to start (errors in Spawner):
> Failed to start your server.
> Please contact admin.
2015-03-13 12:12:36 -07:00
Min RK
545739472e
make default http timeout 30 seconds
...
some computers can be very slow to start
2015-03-13 12:04:07 -07:00
mark carter
36bb03dc3f
Make jupyterhub and jupyterhub-singleuser executable and call python3
2015-03-13 09:01:00 +00:00
Min RK
61fa2d9ef2
Merge pull request #182 from Carreau/theme
...
Better Theme II
2015-03-08 18:26:42 -07:00
Matthias Bussonnier
301560b6f8
use bootstrap variables
2015-03-08 18:06:43 -07:00
Matthias Bussonnier
5bd649829a
remove dropdown
2015-03-08 17:44:46 -07:00
Matthias Bussonnier
eccf2fe5be
Make theme closer to notebook.
...
improvement of admin page split
edit/delete in their own column
2015-03-08 17:39:46 -07:00
Min RK
e82683d14f
remove 'workaround' that didn't workaround anything
2015-03-08 17:25:53 -07:00
Min RK
2455680ab8
cleanup bizarre login html
2015-03-08 17:21:04 -07:00
Min RK
827f694589
simplify login css
...
use mixins, remove lots of unnecessary CSS
2015-03-08 17:21:04 -07:00
Min RK
fa7e230b6e
Merge pull request #56 from Carreau/master
...
Implementation of login page design
2015-03-08 17:20:23 -07:00
Min RK
42a8094b20
add links to wiki auth/spawner lists
...
from the docs
2015-03-07 17:08:13 -08:00