Hello,
Basically I’m trying to connect to my jupyterhub-ide using keycloak oidc using the groups method.
But I’m getting this error 500.
This is the conf I’m using:
hub:
debug: true
config:
Authenticator:
enable_auth_state: true
GenericOAuthenticator:
client_id: jupyterhub
client_secret: secret
oauth_callback_url: https://jupyter.url/hub/oauth_callback
authorize_url: https:/keycloak.url/realms/dataplatform/protocol/openid-connect/auth
token_url: https:/keycloak.url/realms/dataplatform/protocol/openid-connect/token
userdata_url: https:keycloak.url/realms/dataplatform/protocol/openid-connect/userinfo
login_service: keycloak
username_claim: CODEX-JUPYTERHUB-USERS-GROUP
tls_verify: false
enable_auth_state: true
claim_groups_key: groups
allowed_groups:
- CODEX-JUPYTERHUB-ADMIN-GROUP
userdata_params:
state: state
scope:
- groups
- openid
- profile
redirectToServer: true
JupyterHub:
authenticator_class: generic-oauth
concurrentSpawnLimit: 64
consecutiveFailureLimit: 5
And this is the error I’m getting,
Traceback (most recent call last):
File "/opt/bitnami/miniconda/lib/python3.8/site-packages/tornado/web.py", line 1786, in _execute
result = await result
File "/opt/bitnami/miniconda/lib/python3.8/site-packages/oauthenticator/oauth2.py", line 208, in get
user = await self.login_user()
File "/opt/bitnami/miniconda/lib/python3.8/site-packages/jupyterhub/handlers/base.py", line 828, in login_user
authenticated = await self.authenticate(data)
File "/opt/bitnami/miniconda/lib/python3.8/site-packages/jupyterhub/auth.py", line 492, in get_authenticated_user
authenticated = await maybe_future(self.authenticate(handler, data))
File "/opt/bitnami/miniconda/lib/python3.8/site-packages/oauthenticator/oauth2.py", line 966, in authenticate
username = self.user_info_to_username(user_info)
File "/opt/bitnami/miniconda/lib/python3.8/site-packages/oauthenticator/generic.py", line 121, in user_info_to_username
return super().user_info_to_username(user_info)
File "/opt/bitnami/miniconda/lib/python3.8/site-packages/oauthenticator/oauth2.py", line 768, in user_info_to_username
raise ValueError(message)
ValueError: ("No admin found in {'sub': '539a5aca-17df-4c3e-8c7d-eca06f6e8671', 'email_verified': True, 'groups': ['CODEX-AKHQ-ADMIN-GROUP', 'CODEX-AP
I tried different tutorials on internet and using the preffered_username, I also looked on the code source but coudln’t get forward
I appreciate all the critics and help, thank you !