Min RK
3e20642b31
Merge pull request #2359 from minrk/deprecated-event.listen
...
use non-deprecated event to register foreign_keys connection listener
2018-12-14 10:44:09 +01:00
Min RK
a46032b549
use non-deprecated event to register foreign_keys connection listener
2018-12-12 15:41:09 +01:00
Min RK
8ca8225cef
Python 3.5-friendly async context manager
2018-12-12 13:45:36 +01:00
Min RK
0e6cf6a485
Merge pull request #2353 from vilhelmen/pam_admin_groups_fix
...
Fix PAMAuthenticator is_admin
2018-12-12 13:43:38 +01:00
Min RK
37cdba370f
update tests for pytest-asyncio
...
- remove gen_test marker
- use async def
- find/replace yield->await approximately one million times
2018-12-12 13:06:10 +01:00
Min RK
d5f87fe09f
update fixtures for pytest-asyncio
...
instead of pytest-tornado
verify that we don't make any async generator tests
which would pass silently without running any tests
2018-12-12 12:49:54 +01:00
Min RK
2930fa9cc9
Merge pull request #2355 from chang-zhijie/master
...
accept token in Authorization header in services, not just url
2018-12-11 15:34:48 +01:00
chang-zhijie
53c3201c17
store tokens passed via url or header, not only url.
2018-12-11 17:00:16 +08:00
Will Starms
4229d68d23
Fix bad tester/code
2018-12-06 15:32:49 -06:00
Tim Head
8b0bdc71bc
Merge pull request #2347 from minrk/one-flakey-flake
...
Don’t mix no_patience and bad_spawn
2018-12-04 17:54:31 +01:00
Min RK
47e66580db
Don’t mix no_patience and bad_spawn
...
this introduces a race between the early RuntimeError being tested
and the no_patience causing handlers to return early if async start isn’t complete.
With tornado coroutines, an early RuntimeError could be guaranteed to resolve promptly, but asyncio isn’t as consistent,
possibly causing some of the recent flaky tests.
2018-12-04 15:02:53 +01:00
Tim Head
c360777ee0
Merge pull request #2345 from jupyterhub/willingc-patch-1
...
Update incorrect anchor
2018-12-04 08:08:03 +01:00
Carol Willing
05874e9f81
Update incorrect anchor
...
Closes #2338
2018-12-03 20:33:22 -08:00
Tim Head
c3e1d5313d
Merge pull request #2343 from clemens-tolboom/patch-1
...
Fix markdown link into rst
2018-12-03 22:09:54 +01:00
Clemens Tolboom
4b36dce29f
Fix markdown link into rst
2018-12-03 19:05:50 +01:00
Chia-liang Kao
d84ad44b74
actually spawn with server_name
2018-12-02 21:28:05 +08:00
Chia-liang Kao
b60468d2b6
_render_form requires server_name as well
2018-12-02 21:07:45 +08:00
Chia-liang Kao
35d041a701
fix regex
2018-12-02 20:14:50 +08:00
Chia-liang Kao
045ba0671b
Support named server with option form
2018-12-02 16:07:38 +08:00
Min RK
bbc2847530
Merge pull request #2297 from minrk/check-url-startup
...
handle partial launches on startup
2018-11-30 15:11:27 +01:00
Min RK
887f2a2c24
it's spawner.name
2018-11-29 17:14:29 +01:00
Min RK
2b265b2529
Check if a Spawner is running at the given URL on startup
...
avoids assuming partial spawns that may have resulted in running processes but not actually available servers
are treated as fully working servers.
2018-11-28 12:44:58 +01:00
Min RK
f0da8a75b0
Merge pull request #2333 from kinow/remove-auth-unused-dependency
...
Remove unused import
2018-11-28 12:43:29 +01:00
Bruno P. Kinoshita
9aa2110409
Remove unused dependency
2018-11-28 14:41:48 +13:00
pydeepak
047bd4e7cc
Fixed incorrect import
2018-11-27 08:42:28 +05:30
pydeepak
10d781c570
Modified Json Implementation from Text to LargeBinary.
2018-11-27 08:39:46 +05:30
Gerhard Weis
c2aa7f1748
call base handler self.authenticate instead of accessing authenticator directly
2018-11-27 06:41:36 +10:00
Min RK
4ace113965
Merge pull request #2326 from minrk/document-api-options
...
Document specifying spawn options via api
2018-11-26 14:26:16 +01:00
Min RK
69933e240f
document specifying options via rest api
2018-11-23 16:06:38 +01:00
Gerhard Weis
9ac6ed344c
UserTokenListAPIHandler should support Authenticator.authenticate returning a dict
2018-11-22 14:33:48 +10:00
Min RK
c9c0d3723b
Merge pull request #2309 from adelcast/dev/adelcast/refresh_user
...
refresh_user: add handler parameter
2018-11-16 14:52:55 +01:00
Min RK
c09876cbe2
Merge pull request #2315 from adelcast/dev/adelcast/move_pwd
...
LocalSpawner: move pwd module import inside functions
2018-11-16 14:52:38 +01:00
Min RK
6bb4d27a3f
Merge pull request #2313 from adelcast/dev/adelcast/entry_points
...
setuptools entrypoints instead of scripts
2018-11-16 14:45:10 +01:00
Min RK
48c3a3a834
Merge pull request #2307 from vilhelmen/getpwnam_dedupe
...
getgrnam/getpwnam/getgrouplist refactor
2018-11-16 14:44:12 +01:00
Alejandro del Castillo
24dcb4b783
LocalSpawner: move pwd module import inside functions
...
Windows doesn't have a pwd module. To avoid an import error on Windows,
move import statement inside functions that use pwd.
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com >
2018-11-15 16:08:30 -06:00
Will Starms
22d6f48bb8
Make functions private
2018-11-15 15:20:34 -06:00
Alejandro del Castillo
df98fb012e
refresh_user: add handler parameter
...
The current request handler might be needed to determine if the auth
data needs to be refreshed.
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com >
2018-11-15 13:21:24 -06:00
Min RK
ea44ab0c85
Merge pull request #2312 from choldgraf/roadmap
...
[MRG] moving the roadmap to this repo
2018-11-15 19:55:35 +01:00
Alejandro del Castillo
b1759c8882
setup.py: add automatic script generation
...
Use setuptools console_scripts functionality to create top level jupyter
& jupyterhub-single user entry point scripts on *nix, and executables on
Windows.
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com >
2018-11-15 09:53:29 -06:00
Min RK
c633d87f1e
Merge pull request #2296 from pelson/logo_in_page_template
...
Add a logo block, and update the docs regarding base.html.
2018-11-15 12:44:15 +01:00
Min RK
680e829824
Merge pull request #2303 from minrk/check-in-cache
...
HubAuth: allow caching None responses
2018-11-15 12:26:38 +01:00
Chris Holdgraf
891a352f42
updating circle for docs and adding a roadmap
2018-11-14 21:20:26 -08:00
Will Starms
df829e8927
Move getpwnam/grnam/grouplist to LocalAuthenticator
...
Also fix up an old test of mine
2018-11-13 14:48:12 -06:00
Will Starms
f2ae3af90e
Switch to existing getpwnam function
...
To be honest, `getgrouplist`, `getpwnam`, and `getgrnam` should be static methods in LocalAuthenticator
2018-11-13 13:53:54 -06:00
Will Starms
62b991649b
Share authenticated dict with auth functions
...
Adds a compatibility fix to be removed at a future date for the check_x functions.
2018-11-13 11:44:49 -06:00
Min RK
767dce29f4
Merge pull request #2301 from DataVictorEngineer/patch-1
...
Apache reverse proxy customization for jupyterhub
2018-11-12 14:41:19 +01:00
Min RK
7f1c91d8f4
Clear the auth cache when testing the same url twice with different results
2018-11-12 14:35:47 +01:00
Min RK
3a0bacde3a
HubAuth: allow caching None responses
...
when a token doesn't identify a user, the response is None.
These results are cached, but the cache checked for `is None`,
causing failed-auth responses to effectively not be cached.
2018-11-12 12:56:41 +01:00
DataVictorEngineer
7f12418e4c
Apache reverse proxy customization for jupyterhub
...
This is the modification to run the Jupyterhub using the custom url: http://127.0.0.1:8000/jhub/ .
2018-11-11 22:45:30 +02:00
Min RK
40013f7292
Merge pull request #2298 from katsar0v/master
...
improve condition when failing api request, check if user exists, aft…
2018-11-09 20:56:07 +01:00