mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 18:14:10 +00:00
Black and Prettier formatting
This commit is contained in:
@@ -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:
|
A similar service could be run externally, by setting the JupyterHub service environment variables:
|
||||||
|
|
||||||
|
@@ -7,7 +7,13 @@ c.JupyterHub.services = [
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
c.JupyterHub.load_roles = [
|
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
|
# dummy auth and simple spawner for testing
|
||||||
|
Reference in New Issue
Block a user