From 47e67b7425602a18672dee324b38ffff70ceea13 Mon Sep 17 00:00:00 2001 From: Przemyslaw Motacki Date: Mon, 25 Nov 2024 13:06:18 +0100 Subject: [PATCH] SNOW-1689931 Adding flag to skip token file permission verification --- .../net/snowflake/client/config/SFConnectionConfigParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/snowflake/client/config/SFConnectionConfigParser.java b/src/main/java/net/snowflake/client/config/SFConnectionConfigParser.java index 1b5949706..4bf50e1d2 100644 --- a/src/main/java/net/snowflake/client/config/SFConnectionConfigParser.java +++ b/src/main/java/net/snowflake/client/config/SFConnectionConfigParser.java @@ -70,7 +70,7 @@ public static ConnectionParameters buildConnectionParameters() throws SnowflakeS if (!token.isEmpty()) { putPropertyIfNotNull(connectionProperties, "token", token.trim()); } else { - logger.warn("The token has empty value"); + throw new SnowflakeSQLException("Token must be set when the authenticator type is OAUTH"); } } catch (Exception ex) { throw new SnowflakeSQLException(ex, "There is a problem during reading token from file");