Keycloak with ELK: Authentication to realm c9 failed - Failed to authenticate user with OpenID Connect

Hi,

I am integrating Elasticsearch, Kibana with Keycloak.

When I login from Elasticsearch, I enetered details in Keycloak ui. It gives me error.

While in Keycloak it shows up in session

Error in ELasticsearch:

[2022-11-08T17:49:29,667][WARN ][o.e.x.s.a.RealmsAuthenticator] [node-1] Authentication to realm c9 failed - Failed to authenticate user with OpenID Connect (Caused by org.elasticsearch.ElasticsearchSecurityException: Failed to parse or validate the ID Token)