Hey guys,
I’m using in my project two types of authentication: SAML and BASIC with config like below:
I’m trying to use JDBC opendistro driver to use SQL query, but it’s throwing 401 everytime when i’m trying to open connection (DriverManager.getConnection(url, user, password)
Everything else works - kibana saml login, http basic auth request or resthighlevelclient with basic auth requests. Only with JDBC i’m getting 401. When I turned off SAML JDBC driver could connect with no issue.
Url which I’m using: jdbc:elasticsearch://https://{{HOST}}:443?trustSelfSigned=false&auth=BASIC&hostnameVerification=false
Thanks in advance for any suggestions.