From 9c4e650fb1efffd884087659b0d7f238caf5f230 Mon Sep 17 00:00:00 2001 From: Karun Anantharaman <105210556+karunmotorq@users.noreply.github.com> Date: Thu, 23 Jan 2025 15:34:13 +0530 Subject: [PATCH] Remove Username assertion for web browser auth --- src/snowflake/connector/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snowflake/connector/connection.py b/src/snowflake/connector/connection.py index 8d6cb05a7..c6e02e154 100644 --- a/src/snowflake/connector/connection.py +++ b/src/snowflake/connector/connection.py @@ -1238,7 +1238,7 @@ def __config(self, **kwargs): self._token = f.read() if not (self._master_token and self._session_token): - if not self.user and self._authenticator != OAUTH_AUTHENTICATOR: + if not self.user and self._authenticator != OAUTH_AUTHENTICATOR and self._authenticator != EXTERNAL_BROWSER_AUTHENTICATOR: # OAuth Authentication does not require a username Error.errorhandler_wrapper( self,