Fix my bug

This commit is contained in:
Micke Nordin 2024-01-12 10:19:33 +01:00
parent 5b120fce96
commit 67d642040f
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -13,7 +13,7 @@ hub:
oauthCode: | oauthCode: |
c.JupyterHub.authenticator_class = "generic-oauth" c.JupyterHub.authenticator_class = "generic-oauth"
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_SECRET']
c.GenericOAuthenticator.login_service = 'Sunet Drive' c.GenericOAuthenticator.login_service = 'Sunet Drive'
c.GenericOAuthenticator.username_claim = lambda r: r.get('ocs', {}).get('data', {}).get('id') c.GenericOAuthenticator.username_claim = lambda r: r.get('ocs', {}).get('data', {}).get('id')
c.GenericOAuthenticator.username_key = lambda r: r.get('ocs', {}).get('data', {}).get('id') c.GenericOAuthenticator.username_key = lambda r: r.get('ocs', {}).get('data', {}).get('id')