This commit is contained in:
parent
203e3be54f
commit
96030c36ef
|
@ -5,24 +5,22 @@ hub:
|
||||||
enable_auth_state: true
|
enable_auth_state: true
|
||||||
JupyterHub:
|
JupyterHub:
|
||||||
tornado_settings:
|
tornado_settings:
|
||||||
request_timeout: 300
|
|
||||||
connect_timeout: 60
|
|
||||||
headers: { 'Content-Security-Policy': "frame-ancestors *;" }
|
headers: { 'Content-Security-Policy': "frame-ancestors *;" }
|
||||||
db:
|
db:
|
||||||
pvc:
|
pvc:
|
||||||
storageClassName: csi-sc-cinderplugin
|
storageClassName: csi-sc-cinderplugin
|
||||||
extraConfig:
|
extraConfig:
|
||||||
oauthCode: |
|
oauthCode: |
|
||||||
from oauthenticator.generic import GenericOAuthenticator
|
c.JupyterHub.authenticator_class = "generic-oauth"
|
||||||
c.JupyterHub.authenticator_class = GenericOAuthenticator
|
|
||||||
c.GenericOAuthenticator.client_id = os.environ['NEXTCLOUD_CLIENT_ID']
|
c.GenericOAuthenticator.client_id = os.environ['NEXTCLOUD_CLIENT_ID']
|
||||||
c.GenericOAuthenticator.client_secret = os.environ['NEXTCLOUD_CLIENT_ID']
|
c.GenericOAuthenticator.client_secret = os.environ['NEXTCLOUD_CLIENT_ID']
|
||||||
c.GenericOAuthenticator.login_service = 'Sunet Drive'
|
c.GenericOAuthenticator.login_service = 'Sunet Drive'
|
||||||
c.GenericOAuthenticator.username_key = lambda r: r.get('ocs', {}).get('data', {}).get('id')
|
c.GenericOAuthenticator.username_claim = lambda r: r.get('ocs', {}).get('data', {}).get('id')
|
||||||
c.GenericOAuthenticator.userdata_url = 'https://' + os.environ['NEXTCLOUD_HOST'] + '/ocs/v2.php/cloud/user?format=json'
|
|
||||||
c.GenericOAuthenticator.authorize_url = 'https://' + os.environ['NEXTCLOUD_HOST'] + '/index.php/apps/oauth2/authorize'
|
c.GenericOAuthenticator.authorize_url = 'https://' + os.environ['NEXTCLOUD_HOST'] + '/index.php/apps/oauth2/authorize'
|
||||||
c.GenericOAuthenticator.token_url = 'https://' + os.environ['NEXTCLOUD_HOST'] + '/index.php/apps/oauth2/api/v1/token'
|
c.GenericOAuthenticator.token_url = 'https://' + os.environ['NEXTCLOUD_HOST'] + '/index.php/apps/oauth2/api/v1/token'
|
||||||
c.GenericOAuthenticator.oauth_callback_url = 'https://' + os.environ['JUPYTER_HOST'] + '/hub/oauth_callback'
|
c.GenericOAuthenticator.userdata_url = 'https://' + os.environ['NEXTCLOUD_HOST'] + '/ocs/v2.php/cloud/user?format=json'
|
||||||
|
# c.GenericOAuthenticator.oauth_callback_url = 'https://' + os.environ['JUPYTER_HOST'] + '/hub/oauth_callback'
|
||||||
|
|
||||||
extraEnv:
|
extraEnv:
|
||||||
NEXTCLOUD_HOST: sunet.drive.test.sunet.se
|
NEXTCLOUD_HOST: sunet.drive.test.sunet.se
|
||||||
|
|
Loading…
Reference in a new issue