Skip to content

Commit c10a582

Browse files
committed
Revert "fix(client): allow token to coexist with egress basic-auth password in one cluster config"
This reverts commit 8c5301f.
1 parent 8061ec6 commit c10a582

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

core/src/main/java/io/questdb/client/Sender.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import io.questdb.client.cutlass.qwp.client.sf.cursor.CursorSendEngine;
4040
import io.questdb.client.cutlass.qwp.client.sf.cursor.CursorWebSocketSendLoop;
4141
import io.questdb.client.impl.ConfStringParser;
42-
import io.questdb.client.impl.ConfigSchema;
4342
import io.questdb.client.impl.ConfigString;
4443
import io.questdb.client.impl.ConfigView;
4544
import io.questdb.client.network.NetworkFacade;
@@ -3742,7 +3741,7 @@ static void validateWsConfig(ConfigView view, boolean tls) {
37423741
if ((user == null) != (password == null)) {
37433742
throw new IllegalArgumentException("username and password must be provided together");
37443743
}
3745-
if (token != null && user != null) {
3744+
if (token != null && (user != null || password != null)) {
37463745
throw new IllegalArgumentException("cannot use both token and username/password authentication");
37473746
}
37483747
String tlsVerify = view.getStr("tls_verify");

0 commit comments

Comments
 (0)