Hi,
I’m trying to integrate keycloak following the documentation here.
The error I get is ERR_TOO_MANY_REDIRECTS on Chrome. Could anyone help me figure out what is wrong?
(As a first time user, I can’t post links, so I’ve tried to obfuscate it a bit )
My config.yaml file.
hub:
extraEnv:
OAUTH2_AUTHORIZE_URL: my-keycloak-site/auth/realms/15rock/protocol/openid-connect/auth
OAUTH2_TOKEN_URL: my-keycloak-site/auth/realms/15rock/protocol/openid-connect/token
OAUTH_CALLBACK_URL: my-notebook-site/hub/oauth_callback
auth:
type: custom
custom:
className: oauthenticator.generic.GenericOAuthenticator
config:
login_service: "keycloak"
client_id: "jupyterhub"
client_secret: "mysecret"
token_url: my-keycloak-site/auth/realms/15rock/protocol/openid-connect/token
userdata_url: my-keycloak-site/auth/realms/15rock/protocol/openid-connect/userinfo
userdata_method: GET
userdata_params: {'state': 'state'}
username_key: preferred_username
My URL which fails
my-notebook-site/hub/oauth_login?response_type=code&redirect_uri=https%3A%2F%2Fnotebook.15rock.com%2Fhub%2Foauth_callback&client_id=jupyterhub&state=abcd
My Keycloak setting:
client id: jupyterhub
Valid Redirect URIs: my-notebook-site/hub/oauth_callback