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
Kristiyan
2070c8c102
improve condition when failing api request, check if user exists, afterwards check if user is not active
2018-11-09 18:17:40 +01:00
Min RK
eb19a73044
add Spawner.get_url
...
for retrieving the spawner url. Occurs on startup.
Default is a no-op and no Spawner needs to implement this.
2018-11-09 13:22:08 +01:00
Phil Elson
87ce499840
Add a logo block, and update the docs regarding base.html.
2018-11-09 06:36:17 +00:00
Min RK
9a3dbedc52
Merge pull request #2290 from katsar0v/master
...
add configuration for shutting down all user spawners on logout
2018-11-08 14:50:47 +01:00
Min RK
0cebb4c9d7
disable pytest minversion check
...
because it doesn't work with current pytest
2018-11-08 14:36:00 +01:00
Yuvi Panda
fc25b0e10d
Merge pull request #2289 from minrk/move-simple
...
make simplespawner importable
2018-11-07 10:44:17 -08:00
Min RK
006b89746a
use stop_single_user wrapper to stop user servers
...
rather than lower-level spawner.stop
2018-11-06 14:31:42 +01:00
Min RK
1f7838ba5f
ensure async-requests is awaitable
...
so we can use await, not just yield
2018-11-06 14:30:51 +01:00
Min RK
e5e6876cef
test shutdown_on_logout
2018-11-06 14:30:26 +01:00
Kristiyan
2686615304
add configuration for shutting down all user spawners on logout
2018-11-05 11:47:46 +01:00
Min RK
e512847652
use simplespawner as base for testing
2018-11-05 11:01:21 +01:00
Min RK
4fb158933e
no-op move_certs in simplespawner
2018-11-05 11:01:06 +01:00
Min RK
575af23e23
register simplespawner in setup.py
2018-11-05 10:57:10 +01:00
Min RK
52c468d89c
make home_dir a traitlet
...
so the property is only evaluated once and overrideable via hooks
2018-11-05 10:57:02 +01:00
Min RK
80e241c86f
move simplespawner into jupyterhub.spawner
2018-11-05 10:55:40 +01:00
Min RK
c8199c6303
Merge pull request #2244 from vilhelmen/pam_admin_groups
...
admin_groups for PAMAuthenticator
2018-11-05 10:49:38 +01:00
Min RK
090f68bb21
Merge pull request #2264 from minrk/better-local-error
...
explain create_system_users when system users do not exist
2018-11-05 10:47:14 +01:00
Tim Head
5b4f0d4304
Merge pull request #2282 from yuvipanda/real-async-pre-spawn-hook
...
Document that pre_spawn_hook maybe a coroutine
2018-11-03 08:38:42 +01:00
yuvipanda
1efb8c765b
Document that pre_spawn_hook maybe a coroutine
2018-11-02 17:19:16 -07:00
Will Starms
1c0d0daef8
admin_groups for PAMAuthenticator
...
Hoist admin status determination from authentication to a secondary function called by get_authenticated_user
Create mock objects for struct_group and struct_passwd, migrate existing mock group objects to it
Remove old admin mock stuff for authenticate
2018-10-30 11:26:37 -05:00
Min RK
302573e860
Merge pull request #2224 from tuhina2020/jupyter_2105
...
add metrics_authentication decorator to /metrics API #2105
2018-10-26 10:47:36 +02:00