You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Java][JDBC-driver] Ignore username/password auth if they are empty and a token is provided #37073
We've run into some issues with our service where users are using tools that always provide a username/password even if none are provided and a token is passed in as part of the connection params. This causes the driver to go through the Handshake flow using username/password which fails since we don't support that.
Ideally, tools should not attempt to use username/password if none are provided, but it's impossible to force tools to change their implementation. Instead, we could check if the username/password are empty and the token is provided in the connection parameters and choose token auth instead.
If this seems reasonable I'd be happy to put up a PR for it.
Activity
lidavidm commentedon Aug 8, 2023
Makes sense to me!
GH-37073: [Java] JDBC: Only use username/pass auth if token is not pr…
apacheGH-37073: [Java] JDBC: Only use username/pass auth if token is …
apacheGH-37073: [Java] JDBC: Only use username/pass auth if token is …