diff --git a/docs/source/reference/services.md b/docs/source/reference/services.md index d940034b..77d6cb25 100644 --- a/docs/source/reference/services.md +++ b/docs/source/reference/services.md @@ -151,6 +151,8 @@ c.JupyterHub.services = [ { 'name': 'my-web-service', 'url': 'https://10.0.1.1:1984', + # any secret >8 characters, you'll use api_token to + # authenticate api requests to the hub from your service 'api_token': 'super-secret', } ] @@ -331,7 +333,9 @@ and taking note of the following process: 1. retrieve the cookie `jupyterhub-services` from the request. 2. Make an API request `GET /hub/api/authorizations/cookie/jupyterhub-services/cookie-value`, where cookie-value is the url-encoded value of the `jupyterhub-services` cookie. - This request must be authenticated with a Hub API token in the `Authorization` header. + This request must be authenticated with a Hub API token in the `Authorization` header, + for example using the `api_token` from your [external service's configuration](#externally-managed-services). + For example, with [requests][]: ```python