Min RK
c878e137aa
try codecov for coverage
2016-01-05 14:05:59 +01:00
Min RK
53785a985d
return after redirect to spawner form
...
avoids double-call to redirect, which fails
2016-01-05 14:02:20 +01:00
Min RK
b0cc47984b
Merge pull request #364 from minrk/spawn-typo
...
s/users/user typo in spawn redirect
2015-12-31 17:30:56 +01:00
Min RK
91168fc22b
s/users/user typo in spawn redirect
2015-12-31 12:06:04 +01:00
Min RK
66cbb8a614
more testing of spawn page redirects
2015-12-31 12:05:55 +01:00
Min RK
0fbd69be9b
Merge pull request #355 from minrk/spawner-options
...
Add Spawner form page
2015-12-30 16:40:16 +01:00
Min RK
872005f852
document spawner options form
2015-12-30 14:17:58 +01:00
Min RK
647dd09f40
add spawn-form example
2015-12-30 13:55:39 +01:00
Min RK
041c1a4a1e
remove always-False else branch
2015-12-30 13:55:38 +01:00
Min RK
d2e3a73f53
set login cookie after starting server
...
avoids redirect loop
2015-12-30 13:55:38 +01:00
Min RK
2bd7192e89
add extensible get_env
hook on Spawner
...
to make it easier for subclasses to modify the env
2015-12-30 13:55:38 +01:00
Min RK
28f5f33a76
add bootstrap form-control to spawner form inputs
2015-12-30 13:55:38 +01:00
Min RK
f9c9c2b471
options_form is a regular configurable
...
now that we can assume User.spawner exists at all times
2015-12-30 13:55:38 +01:00
Min RK
41ea696546
Instantiate Spawner on User init
...
shrinks `User.spawn` to take single argument, grants User more direct access to state.
2015-12-30 13:55:36 +01:00
Min RK
54f9a296de
test Spawner.user_options and spawn form
2015-12-30 13:55:01 +01:00
Min RK
ba634354dd
Add Spawner form
...
If Spawner.options_form is specified, a form providing input controls is shown to the user prior to launch.
Spawners access the result via the `self.user_options` dict.
The default spawners offer no form.
2015-12-30 13:55:01 +01:00
Min RK
675f19b5cb
Merge pull request #358 from minrk/ipython-traitlets
...
import base traitlets
2015-12-27 22:26:31 +01:00
Min RK
1eed96193d
import base traitlets
...
missed IPython.utils.traitlets import from old User PR
2015-12-24 12:25:43 +01:00
Zoltan Fedor
faa259e97b
IPv6 ready hosts file localhost issue
...
This is to resolve the 'Network is Unreachable' error experienced by a few when JupyterHUB is connecting to localhost.
On most recent linux OS versions like CentOS 6, 7, Red Hat 6, 7, Oracle Linux 6, 7, etc, the hosts file (/etc/hosts) usually has a line to make the server IPv6-ready:
::1 localhost
even if the given server actually has no IPv6 permissioned. In such case the Python socket library when connecting to 'localhost' will try to connect via the IPv6 protocol - which will fail with the 'Network is Unreachable' error.
To solve this we capture this error and try to reconnect on 127.0.0.1 instead of localhost, alias forcing the user of the IPv4 protocol.
2015-12-15 10:53:06 -05:00
Min RK
4785a1ef87
Ensure that we can bind and connect to localhost
...
otherwise fallback to 127.0.0.1 for defaults
2015-12-15 13:37:30 +01:00
Min RK
aa529f3aba
Merge pull request #352 from minrk/sqlalchemy-1.0
...
require sqlalchemy 1.0
2015-12-14 14:11:52 +01:00
Min RK
98955a5702
require sqlalchemy 1.0
...
we know 0.7.9 is too old. We might work on 0.8,
but 1.0 is current.
2015-12-14 10:37:48 +01:00
Min RK
2f1a203699
Merge pull request #349 from minrk/adduser
...
create users with adduser
2015-12-13 13:43:02 +01:00
Brian E. Granger
77b31d8542
Minor fixes to the PR on docs and the default command.
2015-12-13 12:15:31 +01:00
Min RK
8fca4e859d
create users with adduser
...
instead of useradd (on Linux).
- still user `pw useradd` on BSD
- allow complete custom add_user_cmd for specifying directories, etc.
2015-12-13 12:15:31 +01:00
Brian E. Granger
8d90a92ef3
Merge pull request #351 from ellisonbg/token-docs
...
Edits to the security part of the docs
2015-12-12 15:29:09 -08:00
Brian E. Granger
37424acabf
Adding actual secret key...
2015-12-12 15:28:12 -08:00
Brian E. Granger
86a450da77
Edits to the security part of the docs
2015-12-12 14:30:19 -08:00
Min RK
151dcbafb4
Merge pull request #347 from dblockow/feature/log-failed-auth-ip
...
Log Remote IP Address for Failed Authentication Attempts
2015-12-10 22:51:48 +01:00
David Blockow
d512ee9f65
Fixed to cope with a None handler passed in tests
2015-12-08 15:50:54 +10:30
David Blockow
e59b3f3ab1
Remote IP logged for failed authentication attempts
2015-12-08 15:00:29 +10:30
Min RK
2e7af82865
Merge pull request #185 from minrk/outer-user
...
move non-persisted User objects (spawner-related) off of orm.User
2015-12-02 12:44:47 +01:00
Min RK
49d4be002b
Merge pull request #344 from minrk/system-user-home
...
add LocalAuthenticator.system_user_home
2015-12-02 10:29:14 +01:00
Min RK
fa8756767d
add LocalAuthenticator.system_user_home
2015-12-01 10:36:06 +01:00
Min RK
6f128758db
move non-persisted User objects (spawner-related) off of orm.User
...
adds higher level User object, which handles spawning.
This object has running, spawner, etc. attributes.
2015-11-30 14:05:00 +01:00
Min RK
235746a484
Merge pull request #338 from minrk/dockerfile
...
install nodejs with one command in Dockerfile
2015-11-25 15:01:57 +01:00
Min RK
37f736cf45
install nodejs with one command in Dockerfile
2015-11-17 14:54:06 +01:00
Min RK
5376291eaa
Merge pull request #336 from Fokko/master
...
Added npm/node which fixes the Dockerfile
2015-11-17 14:52:54 +01:00
Fokko Driesprong
9e738a62d1
Added npm/node which fixes the Dockerfile
2015-11-16 15:55:41 +01:00
Min RK
8bfe52df4f
Merge pull request #334 from cwaldbieser/custom_login
...
Load Authenticator handlers before default handlers
2015-11-10 12:40:57 +01:00
Carl Waldbieser
91ff31f688
Change the order for handlers so that the authenticator handler is added before the default handlers.
2015-11-09 14:17:26 -05:00
Min RK
b7fe3463cf
back to dev
2015-11-04 17:13:41 +01:00
Min RK
4931684a2c
release 0.3
0.3.0
2015-11-04 17:10:36 +01:00
Min RK
62d3cc53ef
changelog for 0.3
2015-11-04 17:09:34 +01:00
Min RK
bd002e5340
Merge pull request #325 from minrk/authenticator-hooks
...
add pre/post-spawn hooks for Authenticators
2015-11-04 16:07:01 +00:00
Min RK
6f2aefb990
add pre/post-spawn hooks for Authenticators
...
allows setup/cleanup to be performed by the authenticator
use this to open PAM sessions at spawn
and close them at stop,
rather than open at login and never close.
2015-10-16 12:02:44 +02:00
Min RK
bd3c878c67
Merge pull request #320 from minrk/authenticator-username
...
get username from authenticator
2015-10-06 15:43:22 +02:00
Min RK
c1de376b6a
Merge pull request #310 from minrk/singleuser-notebook
...
single-user imports notebook package directly
2015-10-06 14:08:35 +02:00
Min RK
4cc74d287e
get username from authenticator
2015-10-06 13:36:34 +02:00
Min RK
411a7a0bd8
single-user imports notebook package directly
...
instead of relying on IPython.html shims
when should we drop support for IPython 3?
2015-09-24 16:13:28 +02:00