Get Free Trial

Connect to OpenSearch DB with basic auth

Graham McCulloch asked on September 23, 2022

Our Elastic data is in an OpenSearch DB, protected by basic authentication. I’m trying to connect like this but Flexmonster seems to be stripping out the basic auth username and password before sending the request.

  dataSource: {
    type: ‘elasticsearch’,
    node: ‘https://<username>:<password>@<opensearch-id>’,
    index: ‘<my-index>’

How can I connect to a data source that requires basic authentication?

2 answers

Graham McCulloch September 23, 2022

Actually – got it working! I hadn’t spotted the requestHeaders option.

Solomiia Andrusiv Solomiia Andrusiv Flexmonster September 26, 2022

Hello, Graham!

Thank you for reaching out to us.

We are glad to hear that you have resolved the issue.

Feel free to contact us if any other questions arise.


Please login or Register to Submit Answer