mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
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`.
This commit is contained in:
@@ -453,7 +453,7 @@ class JupyterHub(Application):
|
||||
{
|
||||
'name': 'formgrader',
|
||||
'url': 'http://127.0.0.1:1234',
|
||||
'token': 'super-secret',
|
||||
'api_token': 'super-secret',
|
||||
'environment':
|
||||
}
|
||||
]
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user