Min RK
fe85a79ae3
403 in services_auth tests
2017-06-08 19:00:35 +02:00
Min RK
dda3762b48
raise 403 on disallowed user, rather than redirect to login url
...
raise UserNotAllowed exception in generic `check_hub_user`
when a user or service is identified and not allowed.
turn it into `HTTPError(403)` in tornado `get_current_user` wrapper,
caching `None` so that subsequent calls don't re-trigger the same error.
2017-06-07 15:30:12 +02:00
Min RK
ca4952a85d
Merge pull request #1166 from minrk/log-cleanup
...
disconnect logging during MockHub cleanup
2017-06-06 18:39:56 +02:00
Min RK
a6f1f6ea09
disconnect logging during MockHub cleanup
...
pytest appears to close captured FDs prematurely,
causing huge "I/O operation on closed file" tracebacks
whenever tests stop early due to a failure.
This should quiet the extra traceback, though it could potentially silence useful log messages during cleanup in rare cases
2017-06-06 15:28:19 +02:00
Min RK
6810aba5e9
Merge pull request #1164 from joychak/master
...
Added Kerberos authenticator link for Jupyterhub in ReadMe file
2017-06-06 10:09:12 +02:00
jchakrabort5
aca5b1ccd4
Added Kerberos authenticator for Jupyterhub in ReadMe
2017-06-05 10:00:16 -04:00
Carol Willing
888aa99ea6
Merge pull request #1069 from minrk/first-poll-fails-no-crash
...
Prevent crashes due to deleted system users
2017-06-02 05:25:34 -07:00
Min RK
b112b88587
Merge pull request #1148 from yuvipanda/pwdfree
...
Don't use getuser to find out current user name for spawning
2017-05-22 16:40:14 -07:00
Carol Willing
86276541be
Merge pull request #1146 from minrk/log-redirect-targets
...
log redirect targets
2017-05-22 15:18:31 -07:00
Carol Willing
bdfd81fe83
Merge pull request #1144 from minrk/raise-on-config-error
...
raise on config file errors
2017-05-22 15:16:05 -07:00
Min RK
c24a0a4995
typo missing hub.api_url in service
2017-05-22 15:09:31 -07:00
Min RK
524b9104d0
also skip user_env for no username
2017-05-22 15:09:01 -07:00
Min RK
19e896c38d
Merge pull request #1143 from minrk/spawn-next-url
...
Don’t redirect back to home from spawn
2017-05-22 14:39:58 -07:00
Min RK
62517d0c89
Merge pull request #1098 from minrk/proxy
...
implement proxy API
2017-05-22 14:17:41 -07:00
yuvipanda
49a0f154d0
Don't use getuser to find out current user name for spawning
...
It can easily be spoofed, since it only looks at env vars
2017-05-22 14:17:19 -07:00
Min RK
39248a532d
log redirect targets
...
on both Hub and singleuser
should help debugging redirect loops, etc.
2017-05-21 11:04:15 -07:00
Min RK
465c81f281
clarify delete-invalid-user messages and docstrings
2017-05-20 11:31:59 -07:00
Min RK
2d8facd022
Add Authenticator.delete_invalid_users
...
opt-in option for deleting users that have been invalidated,
e.g. for LocalAuthenticators when system users have been removed and `create_system_users` is False.
Since it’s opt-in, log config to do so when the error is seen and option is not enabled.
2017-05-20 11:21:21 -07:00
Min RK
d548aa1e72
deprecate old proxy config
...
but keep it working with warnings
2017-05-19 12:08:49 -07:00
Min RK
7968912a7c
raise on config file errors
...
don’t start jupyterhub if we can’t load config files
2017-05-19 11:43:59 -07:00
Min RK
79bd1a50ad
Don’t redirect back to home from spawn
...
options_form spawn sent people back to home instead of to their newly spawned server
2017-05-19 11:42:58 -07:00
Carol Willing
7b96950a9c
Merge pull request #1139 from tschaume/patch-1
...
semi-colons missing
2017-05-16 18:49:48 -07:00
Patrick Huck
89331d15cc
semi-colons missing
2017-05-16 15:44:47 -07:00
Carol Willing
25910b732a
Merge pull request #1132 from minrk/stop-docstring
...
Correct stop docstring
2017-05-16 13:21:56 -07:00
Min RK
bdcb9e7540
Correct stop docstring
...
stop should always wait to finish,
`now` indicates how forcefully it should be done.
2017-05-15 09:33:23 +02:00
Min RK
130bec4a2f
Merge pull request #1133 from willingc/travis-requests
...
Update pip before install of dependencies on travis
2017-05-10 22:05:27 +02:00
Carol Willing
db2d685c40
Update pip before install dependencies on travis
2017-05-09 10:32:47 -07:00
Carol Willing
f9e0f90e08
Merge pull request #1119 from minrk/next-url
...
include next_url in authenticator login url
2017-05-08 03:05:56 -07:00
Carol Willing
4f85644c34
Merge pull request #1131 from minrk/clear-poll-notify
...
clear poll callbacks list before using it
2017-05-08 03:04:00 -07:00
Min RK
73d77ee56b
clear poll callbacks list before using it
...
avoids accumulating callbacks for repeated spawns
2017-05-08 11:34:24 +02:00
Min RK
33a37ffa25
User has no single .server anymore
2017-05-08 11:07:35 +02:00
Carol Willing
2716ba4dc6
Merge pull request #1129 from charnpreetsingh/docs-warning
...
add jupyterhub-deployment-aws in docs
2017-05-06 17:35:00 -07:00
Carol Willing
65afc65f51
Merge pull request #1130 from willingc/new-docs
...
Update docs for jupyter alabaster theme
2017-05-06 17:20:34 -07:00
Carol Willing
034432bfba
Remove self from contents
2017-05-06 16:51:29 -07:00
Carol Willing
f815fe8b59
Update for jupyter-alabaster local build
2017-05-06 16:46:48 -07:00
Carol Willing
cc7605d6a9
Add subsection docs
2017-05-06 16:46:48 -07:00
Carol Willing
d809b8717c
Add numbered, self, and order in index
2017-05-06 16:46:48 -07:00
Carol Willing
f878ad54a8
Change single toc tree to visible and numbered
2017-05-06 16:46:48 -07:00
Carol Willing
22bc9b0dbf
Make a single toctree
2017-05-06 16:46:48 -07:00
Carol Willing
86428aa0f6
Change to jupyter alabaster doc theme
2017-05-06 16:46:48 -07:00
charnpreetsingh
8c8b532ffd
add jupyterhub-deployment-aws
2017-05-05 12:55:59 -07:00
Min RK
475c0a3144
Merge pull request #1127 from minrk/sudo-false
...
set sudo: false on Travis
2017-05-04 16:27:52 +02:00
Min RK
3c6e20585c
set sudo: false on Travis
2017-05-04 14:03:19 +02:00
Min RK
98c2bd9a6a
return ip, port from stub spawner
...
avoids deprecation warning in tests
2017-05-04 13:49:31 +02:00
Min RK
226b6c40a5
improve waiting for service to start in mockservice fixture
...
- wait for proxy update before starting service
- wait for service server to respond to start before proceeding
2017-05-04 13:33:16 +02:00
Min RK
4cb18c931d
JUPYTERHUB_HOST is hub.public_host
2017-05-04 13:24:04 +02:00
Min RK
96b75c18b7
fix check-routes data access
2017-05-04 13:23:53 +02:00
Min RK
87d9d14e5d
update proxy test
2017-05-04 12:28:37 +02:00
Min RK
1069799ea7
get rid of single-user cookie_name
...
it's unused now that single-user uses OAuth
2017-05-04 12:20:02 +02:00
Min RK
5e55753baa
various cleanup to get most tests passing (yay!)
2017-05-04 12:16:47 +02:00