From c3b0b2ecf0a08e848e9c5e86b0a10eab4ae57516 Mon Sep 17 00:00:00 2001 From: Joshua Milas Date: Fri, 13 Jan 2017 17:45:42 -0500 Subject: [PATCH] Fixed help and documentation related to service tokens The documentation stated that the key `token` should be used to specify the pregenerated token in `JupyterHub.services`. This is wrong as the key should be `api_token`. This changes the help on the trait, along with changing the module docstring in `service.py`. --- jupyterhub/app.py | 2 +- jupyterhub/services/service.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jupyterhub/app.py b/jupyterhub/app.py index e1610211..2e883441 100644 --- a/jupyterhub/app.py +++ b/jupyterhub/app.py @@ -453,7 +453,7 @@ class JupyterHub(Application): { 'name': 'formgrader', 'url': 'http://127.0.0.1:1234', - 'token': 'super-secret', + 'api_token': 'super-secret', 'environment': } ] diff --git a/jupyterhub/services/service.py b/jupyterhub/services/service.py index 6f6ad79c..207088d7 100644 --- a/jupyterhub/services/service.py +++ b/jupyterhub/services/service.py @@ -27,7 +27,7 @@ An externally managed service running on a URL:: 'name': 'my-service', 'url': 'https://host:8888', 'admin': True, - 'token': 'super-secret', + 'api_token': 'super-secret', } A hub-managed service with no URL: