mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 18:14:10 +00:00

incomplete because the current text isn't formatted appropriately for the "will be able to do..." framing of an authorization page
29 lines
760 B
Python
29 lines
760 B
Python
import sys
|
|
|
|
c.JupyterHub.services = [
|
|
{
|
|
'name': 'whoami-api',
|
|
'url': 'http://127.0.0.1:10101',
|
|
'command': [sys.executable, './whoami.py'],
|
|
},
|
|
{
|
|
'name': 'whoami-oauth',
|
|
'url': 'http://127.0.0.1:10102',
|
|
'command': [sys.executable, './whoami-oauth.py'],
|
|
'oauth_roles': ['user'],
|
|
},
|
|
]
|
|
|
|
c.JupyterHub.load_roles = [
|
|
{
|
|
"name": "user",
|
|
# grant all users access to all services
|
|
"scopes": ["access:services", "self"],
|
|
}
|
|
]
|
|
|
|
# dummy spawner and authenticator for testing, don't actually use these!
|
|
c.JupyterHub.authenticator_class = 'dummy'
|
|
c.JupyterHub.spawner_class = 'simple'
|
|
c.JupyterHub.ip = '127.0.0.1' # let's just run on localhost while dummy auth is enabled
|