Nico Rikken
fc90be8424
fix: user user.name instead of user
2019-07-16 12:17:32 +02:00
Nico Rikken
1555abb2bf
feat: unicode escaping method
2019-07-16 11:43:49 +02:00
Nico Rikken
8c8968c2b0
chore: correct handler
...
Probably this has introduced more errors
2019-07-16 11:06:13 +02:00
Nico Rikken
5ae1fdf621
chore: try custom property
2019-07-16 10:53:14 +02:00
Nico Rikken
11e32588d7
chore: use most likely fix for custom username property
2019-07-16 10:17:26 +02:00
Nico Rikken
34e44f2eed
feat: user function in page render function
2019-07-16 10:01:11 +02:00
Min RK
49cc794937
include exception in template vars
...
for custom templates
2019-04-05 10:25:40 +02:00
Min RK
7f9e77ce5b
Allow Spawners to customize spawn-failed message
...
by raising an exception with a `jupyterhub_message` attribute.
This will be a string displayed as escaped HTML (HTML is not allowed).
2019-04-05 10:22:47 +02:00
Min RK
6fa3b429db
include retry link after failed spawn
2019-04-01 17:05:58 +02:00
Min RK
ff283ae636
address review
...
and fix a mis-applied GitHub suggestion
suggestions can only replace one line
2019-03-07 10:33:37 +01:00
Carol Willing
37d4d0e140
Update jupyterhub/handlers/pages.py
...
Co-Authored-By: minrk <benjaminrk@gmail.com >
2019-03-07 10:25:28 +01:00
Carol Willing
e86622b921
quote options_form
...
Co-Authored-By: minrk <benjaminrk@gmail.com >
2019-03-07 10:24:01 +01:00
Min RK
8d01b0356b
test spawn-pending page
2019-02-27 11:15:15 +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
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
b5f6547e64
Merge remote-tracking branch 'origin/master' into named-options-form
2019-02-21 13:25:20 +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
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
Daisuke Taniwaki
b34bdd2846
Limit max named server per user
2019-01-19 15:48:35 +09: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
tmshn
f752e6df1e
Added health check endpoint
2018-10-20 15:41:52 +09:00
Jacob Matuskey
ebed5c2f4b
Add handler to spawner here so you can access query params in form rendering
2018-10-10 20:25:14 -04:00
Joshua Milas
7eba029d1f
Let the options_from_form function be async
...
This commit lets users who interact with spawners and use options_form
to use an async function to process the form.
2018-10-05 23:18:27 -04:00
Min RK
81a410db91
simplify admin UI for named servers
2018-09-24 16:21:40 +02:00
William Krinsman
02cb5ec076
Handle named servers in UserSpawnHandler, home, admin pages
...
Made CSS and HTML (and Jinja2) of admin page compatible with named servers.
2018-09-17 11:54:51 +02:00
Min RK
d79a99323e
make .get_current_user
async
...
- `.get_current_user` is called in the `prepare` stage for all handlers
- use `.current_user` to access current user in methods
- adds Authenticator.refresh_user for refreshing user auth (unused at this point)
2018-09-13 10:16:13 +02:00
Min RK
06f646099f
token expiry fixes
...
typos in token expiry:
- omitted from token model (it's in the spec in docs, but wasn't in the model)
- wrong type when sorting oauth tokens on token page could cause token page to not render
2018-09-11 08:54:12 +02:00
Min RK
9d4c410996
include params in redirect from /spawn -> /user/:name
2018-09-03 09:57:00 +02:00
Kenan Erdogan
315087d67c
fix AddSlashHandler for hub_prefix without trailing /
2018-06-15 13:36:05 +02:00
Min RK
f380968049
test default_url handling
...
- default_url is used even if not logged in
- flesh out docstrings
- pass via settings
2018-05-15 10:15:33 +02:00
Gerhard Weis
b7d302cc72
fix listing of OAuth tokens on tokens page
2018-05-10 08:46:28 +10:00
Min RK
58c91e3fd4
implement API token expiry
2018-05-07 13:00:37 +02:00
Min RK
2517afcee0
Merge pull request #1800 from minrk/token-api
...
API for managing tokens
2018-04-23 12:52:34 +02:00
Rollin Thomas
f2cb24781a
Pass for_user.spawner
to templating namespace
...
Give access to spawner fields from the spawner form template.
2018-04-20 08:25:13 -07:00
Min RK
ce535b55bc
Revoking one oauth token revokes all oauth tokens for that client
2018-04-20 15:34:52 +02:00
Min RK
034147f604
add token lists to token page
2018-04-20 15:34:52 +02:00
Min RK
a0ee237ada
Simplify root/login redirect behavior
...
- ignore spawner state when determining redirect destination
- remove implicit spawn from login handler (rely on redirect to user.url for spawn)
- settings.redirect_to_server determines if login sends users to /user/:name vs /hub/home
- visiting `/hub/` should result in the same destination regardless of login state or spawner state
2018-03-14 15:37:25 +01:00
Min RK
7a268c94b0
bulk find/replace async def and await
...
- `@gen.coroutine def` -> `async def`
- `yield future` -> `await future`
needs some fine tuning, but this is the big one
2018-03-12 18:18:46 +01:00
Min RK
5bf1aac9cb
get the right render form when spawning for another user
2018-03-12 14:23:57 +01:00
Min RK
b151d333d3
show who you're spawning for if it's not yourself
...
on the spawn page
2018-03-12 14:23:00 +01:00
Min RK
b2527984bc
use find_user in POST /spawn/:user
...
so we get a 404 for missing users
2018-03-12 14:23:00 +01:00
Min RK
b8d2271191
add /spawn/:user for spawning servers for a specific user
...
part of admin-access
2018-03-12 14:23:00 +01:00
Emmanuel Gomez
48e7bd4f10
Add Spawner.get_options_form
for async support.
2018-02-26 16:50:40 -08:00
Robert Schroll
9f6cef4fb4
Add option to redirect to running Jupyter server
...
This is how the system used to behave, but now it can be turned off, always
showing the control panel on login. Adjustment is needed in two places.
2018-02-05 18:12:07 -08:00
Derek Heldt-Werle
ad704d9925
No longer force a redirect when pending, simply set url to allow users access to home page during a pending spawn
2017-11-21 10:17:42 -08:00
Derek Heldt-Werle
7f7cd0a314
If spawner is pending, always route to /hub/home/:user to resolve issues with form options
2017-11-13 15:22:49 -08:00
Min RK
be05e438ca
use outerjoin to join User with Spawner for admin page
...
avoids excluding users from admin page if they haven't instantiated their first Spawner yet
2017-10-04 13:58:08 +02:00