we think it might be a scope issue, but not entirely sure
# OAuth2 application info
c.JupyterHub.authenticator_class = GenericOAuthenticator
c.GenericOAuthenticator.oauth_callback_url = "https://stats.brainandspinegroup.org/hub/oauth_callback"
c.GenericOAuthenticator.client_id = ""
c.GenericOAuthenticator.client_secret = ""
# Identity provider info
c.GenericOAuthenticator.authorize_url = "https://auth.brainandspinegroup.org/realms/my_BSG/protocol/openid-connect/auth"
c.GenericOAuthenticator.token_url = "https://auth.brainandspinegroup.org/realms/my_BSG/protocol/openid-connect/token"
c.GenericOAuthenticator.userdata_url = "https://auth.brainandspinegroup.org/realms/my_BSG/protocol/openid-connect/userinfo"
# What we request about the user
c.GenericOAuthenticator.userdata_params = {"state": "state"}
c.GenericOAuthenticator.username_key = "preferred_username"
c.GenericOAuthenticator.login_service = "myBSG"
c.GenericOAuthenticator.userdata_method = 'GET'
c.GenericOAuthenticator.allow_all = True
c.GenericOAuthenticator.create_system_users = True
c.GenericOAuthenticator.auto_login = False
c.GenericOAuthenticator.scope = ["openid", "email","profile", "groups"]
c.GenericOAuthenticator.claim_groups_key = "groups"
here are some logs
2024-06-16 02:08:15,890 WARN [org.keycloak.events] (executor-thread-361) type="LOGIN_ERROR", realmId="bdf513bd-3ccb-4eb4-8c3c-535892199860", clientId="jupyterhub-client", userId="null", ipAddress="173.73.145.221", error="invalid_redirect_uri", redirect_uri="https://auth.brainandspinegroup.org/realms/my_BSG/protocol/openid-connect/auth"
2024-06-16 02:42:29,120 WARN [org.keycloak.events] (executor-thread-364) type="CUSTOM_REQUIRED_ACTION_ERROR", realmId="bdf513bd-3ccb-4eb4-8c3c-535892199860", clientId="null", userId="null", ipAddress="70.105.172.177", error="cookie_not_found"
2024-06-16 02:49:19,982 WARN [org.keycloak.events] (executor-thread-366) type="CUSTOM_REQUIRED_ACTION_ERROR", realmId="bdf513bd-3ccb-4eb4-8c3c-535892199860", clientId="null", userId="null", ipAddress="70.105.172.177", error="cookie_not_found"
2024-06-16 03:03:35,494 WARN [org.keycloak.protocol.oidc.endpoints.request.AuthorizationEndpointRequestParserProcessor] (executor-thread-368) Parameter 'client_id' not present or present multiple times in the HTTP request parameters
2024-06-16 03:03:35,495 WARN [org.keycloak.events] (executor-thread-368) type="LOGIN_ERROR", realmId="bdf513bd-3ccb-4eb4-8c3c-535892199860", clientId="null", userId="null", ipAddress="74.82.16.196", error="invalid_request"
2024-06-16 03:03:35,956 WARN [org.keycloak.events] (executor-thread-368) type="USER_INFO_REQUEST_ERROR", realmId="bdf513bd-3ccb-4eb4-8c3c-535892199860", clientId="null", userId="null", ipAddress="74.82.16.196", error="invalid_token", auth_method="validate_access_token"
any and all help is appreciated!