From a893d65bd64515f4b40eb45869959dd08a926575 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Fri, 12 Jan 2024 13:15:13 +0100 Subject: [PATCH] wnable auth state and swith from key to claim --- jupyter/base/values/values.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jupyter/base/values/values.yaml b/jupyter/base/values/values.yaml index 51237a5..5f2d6a4 100644 --- a/jupyter/base/values/values.yaml +++ b/jupyter/base/values/values.yaml @@ -16,12 +16,13 @@ hub: c.GenericOAuthenticator.client_id = os.environ['NEXTCLOUD_CLIENT_ID'] c.GenericOAuthenticator.client_secret = os.environ['NEXTCLOUD_CLIENT_SECRET'] 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.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.allow_all = True + c.GenericOAuthenticator.enable_auth_state = True extraEnv: NEXTCLOUD_HOST: sunet.drive.test.sunet.se JUPYTER_HOST: jupyter.drive.test.sunet.se