Black and Prettier formatting

This commit is contained in:
Robert Schroll
2024-01-19 18:11:34 -08:00
parent 1d9182dd82
commit 551c65243c
2 changed files with 8 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ After logging in with your local-system credentials, you should see a JSON dump
}
```
This relies on the Hub starting the whoami service, via config (see [jupyterhub_config.py](./jupyterhub_config.py)). For ordinary users to access this service, they need to be given the appropriate scope (again, see [jupyterhub_config.py](./jupyterhub_config.py)).
This relies on the Hub starting the whoami service, via config (see [jupyterhub_config.py](./jupyterhub_config.py)). For ordinary users to access this service, they need to be given the appropriate scope (again, see [jupyterhub_config.py](./jupyterhub_config.py)).
A similar service could be run externally, by setting the JupyterHub service environment variables:

View File

@@ -7,7 +7,13 @@ c.JupyterHub.services = [
},
]
c.JupyterHub.load_roles = [
{'name': 'user', 'scopes': ['access:services!service=whoami', 'self']}
{
'name': 'user',
'scopes': [
'access:services!service=whoami', # access this service
'self', # and all of the standard things for a user
],
}
]
# dummy auth and simple spawner for testing