opensearch-project / sql-jdbc

This is the driver for JDBC connectivity to a cluster running with OpenSearch SQL support.
Apache License 2.0
14 stars 25 forks source link

Make driver throw SQLSTATE 28000 for invalid username or password #102

Closed GumpacG closed 1 year ago

GumpacG commented 1 year ago

Description

This change throws SQLSTATE 28000 for invalid username or password which is required by Tableau. This only covers 401 responses, responses like 403 from SIGV4 returns a different message.

Before:

Screenshot 2023-06-15 at 11 20 50 AM

After:

Screenshot 2023-06-21 at 3 30 51 PM

Issues Resolved

https://github.com/opensearch-project/sql-jdbc/issues/95

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.