Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit 396f17b

Browse files
authored
Stop using invalid password authenticator (#8)
Replace usage of invalid `password` authenticator by proper `snowflake`.
1 parent 958cc74 commit 396f17b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

target_snowflake/db_sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def open_connection(self):
297297

298298
return snowflake.connector.connect(
299299
user=self.connection_config['user'],
300-
password=self.connection_config.get('password') if not self.connection_config.get("use_browser_authentication") else None,
300+
password=self.connection_config.get('password') if not self.connection_config.get('use_browser_authentication') else None,
301301
account=self.connection_config['account'],
302302
database=self.connection_config['dbname'],
303303
warehouse=self.connection_config['warehouse'],
@@ -311,7 +311,7 @@ def open_connection(self):
311311
schema=self.schema_name,
312312
table=self.table_name(stream, False, True))
313313
},
314-
authenticator="externalbrowser" if self.connection_config.get("use_browser_authentication") else "password"
314+
authenticator='externalbrowser' if self.connection_config.get('use_browser_authentication') else 'snowflake'
315315
)
316316

317317
def query(self, query: Union[str, List[str]], params: Dict = None, max_records=0) -> List[Dict]:

0 commit comments

Comments
 (0)