Skip to content

Commit ddf936a

Browse files
sfc-gh-stakedaankit-bhatnagar167
authored andcommitted
SNOW-98873: Make authenticator field case insensitive earlier
1 parent 8b07e5c commit ddf936a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

connection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,9 @@ def __config(self, **kwargs):
747747
if u'protocol' not in kwargs:
748748
setattr(self, u'_protocol', u'https')
749749

750+
if self._authenticator:
751+
self._authenticator = self._authenticator.upper()
752+
750753
if not self.user and self._authenticator != OAUTH_AUTHENTICATOR:
751754
# OAuth Authentication does not require a username
752755
Error.errorhandler_wrapper(
@@ -759,9 +762,6 @@ def __config(self, **kwargs):
759762
if self._private_key:
760763
self._authenticator = KEY_PAIR_AUTHENTICATOR
761764

762-
if self._authenticator:
763-
self._authenticator = self._authenticator.upper()
764-
765765
if self._authenticator != EXTERNAL_BROWSER_AUTHENTICATOR and \
766766
self._authenticator != OAUTH_AUTHENTICATOR and \
767767
self._authenticator != KEY_PAIR_AUTHENTICATOR:

0 commit comments

Comments
 (0)