I'm having trouble configuring Kibana and Keycloak to use SSO. I am getting an error like the one below:
Failed to authenticate user with OpenID Connect (Caused by ElasticsearchSecurityException[Failed to exchange code for Id Token using the Token Endpoint.
[2022-03-14T13:25:59,692][WARN ][o.e.x.s.a.RealmsAuthenticator] [master] Authentication to realm oidc1 failed - Failed to authenticate user with OpenID Connect (Caused by ElasticsearchSecurityException[Failed to exchange code for Id Token using the Token Endpoint.]; nested: ConnectException[Timeout connecting to [/keycloak-url:8443]];)
Elasticsearch tries to communicate with https://keycloak-url:8443/auth/realms/kibana/protocol/openid-connect/token and it times out. Are you sure that keycloak is running and functional and accessible in the URL that you configure there ? ( I assume that keycloack-url is an obfuscation of the actual URL )
Then it seems to be a problem with keycloak and not the Elastic Stack. Maybe there is a relevant forum or support portal where you can get better assistance with fixing keycloak ? Not sure if we can offer much assistance here unfortunately
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.