Min RK
546268809f
add / to user-redirect
...
Some proxies may not correctly route /user/name, only /user/name/...
2017-08-08 12:02:36 +02:00
Min RK
d559cad042
test_pages without threads
2017-07-27 11:29:56 +02:00
Min RK
eb1895e980
simplify Hub object a bit
...
- remove use of deprecated Hub.server
- add deprecation warning to Hub.server property
- move cookie_name declaration to Hub
It should now be possible to use Hub.from_url('http://1.2.3.4:1234/hub/ ') without missing information
2017-07-26 11:48:30 +02:00
Min RK
69a6c79558
use admin user in test_admin
...
rather than relying on multi db sessions talking to each other
2017-07-24 13:37:11 +02:00
Min RK
11e6c38702
routespecs are strings (again)
...
- no slash means host-routing
- slash means no-host
2017-06-23 14:49:42 +02:00
Min RK
be8f847309
move proxy management to Proxy object
...
out of the Application
2017-05-04 11:13:19 +02:00
Min RK
acc31b8441
remove Hub, Proxy from database
...
These are in-memory-only objects, no need for a table with one row
2017-05-04 11:05:58 +02:00
Min RK
9e679e8024
avoid stripping login form fields
...
which prevented users from being able to login with passwords that start or end with whitespace
2017-04-28 16:40:11 +02:00
Min RK
a59b0af2b4
test auto_login redirects
2017-04-07 17:01:51 +02:00
Mike Gevaert
21af37a7a3
Teach FormSpawner to handle query next=/path/to/landing
...
* before, if /user-redirect/ was used, or if ?next=/path/
and there was a FormSpawner, the query param would be lost
2017-03-17 14:00:15 +01:00
Min RK
26b00578a1
remove redundant user_url utility
...
public_url works for users now
2016-09-02 13:22:49 +02:00
Min RK
6bba1c474f
Add /user-redirect/ endpoint
...
should avoid needing to cram user-detection / intent into other endpoints.
That functionality isn't removed,
but warnings are added indicating that /user-redirect/ should be used instead.
2016-06-24 16:08:30 +02:00
Min RK
992717adc0
support cross-user redirects when JupyterHub is on a prefix
2016-06-16 15:42:00 +02:00
Min RK
05c268e190
Run tests with an encoded base_url
...
to ensure we get our escaping right
Mostly revealed fixes needed in tests so far, not code,
but should catch regressions.
2016-05-26 13:56:20 +02:00
Min RK
96269fac0f
Call add_user
more often
...
- Ensures add_user is called as part of startup *for all users*.
This was previously only true for users not already in the db.
- Normalize usernames in whitelist and admin sets
- Call add_user on new users logged in when there is no whitelist.
2016-03-08 10:49:02 +01:00
Min RK
67ccfc7eb7
increase some test coverage
2016-03-07 16:13:57 +01:00
Dara Adib
5a10d304c9
Redirect user to login page when not logged in
2016-03-02 16:55:33 -08:00
Dara Adib
fdd3746f54
Add test for user redirect
2016-03-02 16:18:02 -08:00
Min RK
335b47d7c1
include protocol in subdomain_host
...
makes everything easier, and tests are passing with and without subdomains (yay!)
2016-02-28 11:12:41 +01:00
Min RK
f922561003
Tests are passing with subdomains
2016-02-26 17:32:55 +01:00
Min RK
e28eda6386
exercise some static file handlers in tests
2016-02-09 15:38:44 +01:00
Tim Head
a59f57e095
Handle file upload in spawner form
...
Allow files to be uploaded in the spawner form.
2016-01-09 13:53:45 +01:00
Min RK
66cbb8a614
more testing of spawn page redirects
2015-12-31 12:05:55 +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
54f9a296de
test Spawner.user_options and spawn form
2015-12-30 13:55:01 +01:00
Joseph Tate
1a3c062512
Fix broken test
2015-07-23 15:06:20 -04:00
Min RK
d0b4e5bc2a
add some basic exercise for HTML pages
2015-04-07 15:49:24 -07:00