/
auth.yaml
41 lines (35 loc) · 1.06 KB
/
auth.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
config:
BinderHub:
auth_enabled: true
jupyterhub:
hub:
services:
binder:
oauth_redirect_uri: "https://notebooks-test.gesis.org/oauth_callback"
oauth_client_id: "binder-oauth-client-test"
extraConfig:
hub_extra: |
c.JupyterHub.redirect_to_server = False
binder: |
from kubespawner import KubeSpawner
class BinderSpawner(KubeSpawner):
def start(self):
if 'image' in self.user_options:
# binder service sets the image spec via user options
self.image = self.user_options['image']
return super().start()
c.JupyterHub.spawner_class = BinderSpawner
auth:
type: github
github:
# to make notebook servers aware of hub
# callbackUrl: "https://notebooks-test.gesis.org/jupyter/hub/oauth_callback"
callbackUrl: "https://notebooks-test.gesis.org/hub/oauth_callback"
scopes:
- "read:user"
admin:
users: ['bitnik', 'arnim']
singleuser:
cmd: jupyterhub-singleuser
cull:
users: False