Add tokens can be for activities not tied to a specific user

This commit is contained in:
Carol Willing
2017-08-08 16:01:41 -07:00
parent 264a78e2cc
commit bd0e00ed86

View File

@@ -58,6 +58,16 @@ the **key** is the 'token' while the **value** is the 'username'):
c.JupyterHub.api_tokens = {'token' : 'username'}
```
### Use API tokens for services and tasks that require external access
While API tokens are often associated with a specific user, API tokens
can be used by services that require external access for activities
that may not correspond to a specific human, e.g. adding users during
setup for a tutorial or workshop:
c.JupyterHub.services = [
{'name': 'adding-users', 'api_token': 'super-secret-token'},
]
### Restart JupyterHub