Richard Darst
4ec92f9f14
Add the separate-proxy documentation
2019-02-27 12:21:21 +02: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
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
Min RK
d8d1b6c149
test activity api
2019-02-11 16:17:23 +01:00
Min RK
a2f5a0bea9
tolerate mocks for user.name
...
lots of testing uses mock Users, so tolerate the absence of user.escaped_name
2019-02-11 15:34:46 +01:00
Min RK
0063752a7f
push activity to hub via api
...
servers publish activity on a regular interval (default: 5m)
2019-02-11 15:03:17 +01:00
Min RK
297f6988bd
debug logs at beginning/end of user.stop
2019-02-11 15:03:17 +01:00
Richard Darst
a6d217d113
pam_normalize_username: add docs
2019-02-07 01:35:18 +02:00
Min RK
e51ea3f2be
s/TEXT/Text/
2019-02-06 14:02:08 +01:00
Min RK
bf36f9fc9a
use Text instead of TEXT
...
TEXT is wrong on Oracle, LargeBinary is wrong everywhere else.
Text seems to be the high-level type that maps to the right thing both places.
This results in no change on supported implementations, as Text == TEXT there.
2019-02-06 13:47:40 +01:00
Min RK
b196dd2bea
add activity spec to rest api
2019-02-06 13:15:42 +01:00
Min RK
10191f43fe
add alabaster_jupyterhub to docs/requirements.txt
2019-02-06 13:15:11 +01:00
Min RK
342f40c8d7
Merge pull request #2404 from minrk/deprecations
...
fix some deprecation warnings in tests
2019-02-05 13:49:12 +01:00
Min RK
895bc378df
Merge branch 'master' into deprecations
2019-02-05 13:06:28 +01:00
Min RK
00cafc8392
Merge pull request #2342 from minrk/expire-auth
...
allow auth to expire
2019-02-05 13:05:00 +01:00
Min RK
a6d0c36594
allow bypassing proxy in api_request
...
needed when testing that the proxy is down
2019-02-05 12:40:55 +01:00
Min RK
71a8573fdb
fix some deprecation warnings in tests
...
Calling HasTraits(attr=value) doesn't work for non-traits
1. remove one redundant assignment for a non-trait
2. make one attribute a trait
2019-02-05 11:38:42 +01:00
Min RK
2715607361
make api requests via public url
...
to ensure cookies are properly set
2019-02-05 11:27:49 +01:00
Min RK
f2bfe6cd96
set Referer when testing cookie-authenticated api requests
...
Referer is checked for cookie-authenticated requests
2019-02-04 16:10:09 +01:00
Min RK
9008d5eea4
import mock from stdlib
2019-02-04 15:46:12 +01:00