Skip to content

[Java][JDBC-driver] Ignore username/password auth if they are empty and a token is provided #37073

Closed

Description

@aiguofer

Describe the enhancement requested

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.

Component(s)

Java

Activity

  1. lidavidm commented on Aug 8, 2023

    @lidavidm
    Member

    Makes sense to me!

  2. added a commit that references this issue on Aug 9, 2023
  3. added this to the 14.0.0 milestone on Aug 9, 2023
  4. added a commit that references this issue on Nov 13, 2023
  5. added a commit that references this issue on Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions