Min RK
f8add6ae6d
fix local-redirect check for subdomains
2019-02-26 11:56:28 +01:00
Min RK
d1f115d951
wait for spawner to start before talking to it
2019-02-25 16:55:53 +01:00
Min RK
fab5c33796
handle spawn-pending redirects in some tests
...
avoids issues with assuming that spawn is quick
2019-02-25 16:10:51 +01:00
Min RK
4ab525ab5f
test spawn form with named server
2019-02-25 15:57:32 +01:00
Min RK
1185619bf6
update tests for changed redirects
...
- handle 503 on not running /hub/user/:name
- handle new spawn-redirect page
2019-02-25 15:43:50 +01:00
Min RK
4b1d80203e
redact cookie headers in error logs
2019-02-25 14:49:13 +01:00
Min RK
d8cabdb90f
Merge pull request #2433 from Carreau/document_admin_group
...
document admin_group
2019-02-25 14:32:38 +01:00
Min RK
947b9b1a9e
rework handing of /user/:name
...
- /user/:name no longer triggers implicit spawn at any point
- add /spawn-pending/:user/:server handler for pending page. This page has no side effects.
- spawn links point to /spawn/:user/:server to finish hooking up links for named servers and options_form handling
2019-02-25 14:21:34 +01:00
Min RK
6f63ac7831
simplify start-server links as pure links to /spawn/:user/:server
...
instead of API requests
this gets better progress-page loading and options form rendering
2019-02-25 13:45:02 +01:00
Min RK
0c028c7186
import parsing of Accept header
...
used to determine if a request expects JSON or not
2019-02-25 13:44:10 +01:00
Min RK
1498707ac9
nicer repr of Server objects
...
we had a nice repr on orm.Server, let's bring it back
2019-02-25 13:42:48 +01:00
Min RK
de20c3f3a7
accept default argument in get_next_url
...
allows different defaults for different contexts
2019-02-25 13:41:38 +01:00
Richard Darst
0df552e2a1
Add documentation on running the proxy separate from the hub.
...
- It took me a bit longer than I would have liked for me to figure out
how to run the proxy separate from the hub. When I had to do this a
second time for a different hub, it also took me too long.
- This adds a page dedicated to running the proxy separate from the
hub, since it is relatively easy and has a high usability
improvement.
- Currently work in progress.
2019-02-22 16:30:14 +02:00
Matthias Bussonnier
b4c53a29a9
document admin_group
2019-02-21 21:53:29 -08:00
Matthias Bussonnier
ca67757269
Merge pull request #2432 from Carreau/entrypointsplural
...
Entrypoints is plural
2019-02-21 17:21:22 -08:00
Matthias Bussonnier
aaa4deeed0
Entrypoints is plural
...
Of course both package exists...
2019-02-21 17:19:59 -08:00
Matthias Bussonnier
bda8671807
Merge pull request #2431 from Carreau/fix-docs-builds
...
Entrypoint is necessary to build the API docs of most authenticators
2019-02-21 17:05:54 -08:00
Matthias Bussonnier
4d75c16335
Entrypoint is necessary to build the API docs of most authenticators
2019-02-21 11:28:02 -08:00
Min RK
b5f6547e64
Merge remote-tracking branch 'origin/master' into named-options-form
2019-02-21 13:25:20 +01:00
Carol Willing
17aee17c5f
Merge pull request #2418 from minrk/autoformat
...
Adopt black, pre-commit
2019-02-21 02:50:04 -08:00
Min RK
2f99104f57
a couple fixups after autoformatting
2019-02-19 17:04:37 +01:00
Min RK
80519f4fd0
consistency in CONTRIBUTING.md
2019-02-19 17:01:09 +01:00
Min RK
1531e94cc7
pre-commit is a dev requirement
2019-02-19 17:00:13 +01:00
Min RK
43c3ac78fc
run lint test early
2019-02-19 17:00:13 +01:00
Min RK
9cc6aa9b6d
describe pre-commit setup in CONTRIBUTING.md
2019-02-19 17:00:13 +01:00
Min RK
031cb6076a
run pre-commit on travis
...
to verify that autoformatting has been run
include hopefully helpful message if it fails
2019-02-19 17:00:13 +01:00
Min RK
5e60582ef3
run autoformat
...
apologies to anyone finding this commit via git blame or log
run the autoformatting by
pre-commit run --all-files
2019-02-19 17:00:10 +01:00
Min RK
ca198e0363
add pre-commit config
...
various simple fixes (space, newlines), plus two big ones:
- reorder imports
- run black
2019-02-19 16:59:11 +01:00
Min RK
d14a4bbe2c
add black configuration
2019-02-19 16:59:11 +01:00
Min RK
ada8582768
pass flake8 on examples
...
define flake8 builtins for config files (c, get_config)
2019-02-19 16:59:11 +01:00
Min RK
856923b35f
Merge pull request #2308 from vilhelmen/post_auth_hook
...
post_auth_hook processor
2019-02-19 16:56:27 +01:00
Min RK
39902a7140
async fixes in post_auth_hook
2019-02-19 16:07:32 +01:00
Will Starms
8524556b33
Add croutine support, force dict return
...
Also fix weird typo in example code
2019-02-15 15:37:23 +01:00
Will Starms
7c36ac93ba
post_auth_hook processor
...
Does what it sounds like, allows an arbitrary function to be called right before the return in `get_authenticated_user`
2019-02-15 15:36:03 +01:00
Min RK
fec3d959f2
Merge pull request #2268 from vilhelmen/auth_data_sharing
...
Share authenticated dict with auth functions
2019-02-15 15:33:36 +01:00
Min RK
52d8f74eb1
Merge pull request #2397 from rkdarst/pam_normalize_username
...
pam_normalize_username option: round-trip usernames through PAM to normalize
2019-02-15 15:17:28 +01:00
Min RK
701b93d226
check_group_whitelist is optional
2019-02-15 15:09:56 +01:00
Min RK
bb83bb47d8
auth: apply adaptation to deprecated signature in init
...
applies/warns in init, ensures compatibility with a wrapper
rather than warning/calling differently at call time, which won't take effect everywhere
2019-02-15 13:22:06 +01:00
Min RK
1ba47d4a3d
Merge branch 'master' into auth_data_sharing
2019-02-15 13:03:09 +01:00
Min RK
8c76f2b30c
Merge pull request #2414 from minrk/threads
...
add an additional case for idle ThreadPoolExecutor threads
2019-02-15 11:16:30 +01:00
Min RK
a7c3ea0906
Merge pull request #2346 from minrk/push-activity
...
push last_activity to the hub
2019-02-15 11:16:12 +01:00
Min RK
fa2cb33b27
Merge pull request #2415 from consideRatio/async-options-form
...
Allow callable options_form to return an empty form
2019-02-15 10:49:32 +01:00
Erik Sundell
32706963ae
Add test for falsy callable options_form
2019-02-14 16:50:07 +01:00
Erik Sundell
fb4c920996
Allow callable options_form to return an empty form
...
Closes #2390
This is meant to allow us dynamically decide to bypass the option form
even though it is a async function that in itself evaluates truthy.
2019-02-14 16:49:27 +01:00
Min RK
370ec4f5c7
remove unused sp
...
we need to ensure the spawners exist,
but we do that when we set last_activity
2019-02-14 16:01:51 +01:00
Min RK
5e77e448bd
add an additional case for idle ThreadPoolExecutor threads
...
this is what they look like in Python 3.7
2019-02-12 16:00:07 +01:00
Min RK
7c46fe74a5
Merge pull request #2413 from minrk/redirect
...
add missing trailing slash in / -> /hub/ redirect
2019-02-12 15:04:47 +01:00
Min RK
dcdb8d8a89
add missing trailing slash in / -> /hub/ redirect
2019-02-11 17:29:45 +01:00
Min RK
087dd0fcd2
Merge pull request #2330 from Deepakdubey90/jupyterhub-oracle-integration
...
Modified JSON-DICT Implementation from TEXT to Text
2019-02-11 16:41:47 +01:00
Min RK
33a139861b
notmybestwork: avoid updating user activity with server api access
...
this isn't the most important metric (server.last_activity is),
but avoid *probable* server api access incrementing user.last_activity
2019-02-11 16:18:37 +01:00