Hi Vinay,
Please try with this here [1]
<bean
class="org.apache.syncope.ext.elasticsearch.client.ElasticsearchClientFactoryBean">
<constructor-arg> <list> <ref bean="httpHost"/> </list>
</constructor-arg> <property name="username" value="myESUsername"/>
<property name="password" value="myESPassword"/> <property
name="apiKeyId" value="myApiKeyId"/> <property name="apiKeySecret"
value="myApiKeySecret"/> </bean>
and let us know.
Best regards,
Andrea
[1]
https://github.com/apache/syncope/blob/2_1_X/ext/elasticsearch/client-elasticsearch/src/main/resources/elasticsearchClientContext.xml
On 01/03/22 19:45, Vinay Kavala wrote:
Hi Team,
In the documentation
https://syncope.apache.org/docs/2.1/reference-guide.html#customization-core
<https://syncope.apache.org/docs/2.1/reference-guide.html#customization-core> it
is mentioned that we need to configure the
elasticSearchClientContext.xml to connect to the ES Cluster.
How do we pass on the username and password as credentials to the
ElasticsearchClientFactoryBean?
I have added the below in the xml file..
<bean id="httpHost" class="org.apache.http.HttpHost">
<constructor-arg
value="51cef73639d747b081088788c3ad3323.ip.es.odplabs.com"/>
<constructor-arg value="9243"/>
<constructor-arg value="https"/>
</bean>
How(and where) do I need to pass in the credentials to connect to the
ES Cluster?
Thanks,
Vinay
--
Andrea Patricelli
Tirasa - Open Source Excellence
http://www.tirasa.net/
Member at The Apache Software Foundation
Syncope