Skip to content

Commit

Permalink
adding port support into oauth code flow auth
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mkeller committed Jan 29, 2025
1 parent 4d78183 commit 60b461a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/snowflake/connector/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ def _get_private_bytes_from_file(
# SNOW-1825621: OAUTH implementation
),
"oauth_authorization_url": (
"{host}/oauth/authorize",
"{host}:{port}/oauth/authorize",
str,
# SNOW-1825621: OAUTH implementation
),
"oauth_token_request_url": (
"{host}/oauth/token-request",
"{host}:{port}/oauth/token-request",
str,
# SNOW-1825621: OAUTH implementation
),
Expand Down Expand Up @@ -1135,10 +1135,10 @@ def __open_connection(self):
client_id=self._oauth_client_id,
client_secret=self._oauth_client_secret,
authentication_url=self._oauth_authorization_url.format(
host=self.host,
host=self.host, port=self.port
),
token_request_url=self._oauth_token_request_url.format(
host=self.host,
host=self.host, port=self.port
),
redirect_uri="http://127.0.0.1:{port}/",
scope=self._oauth_scope,
Expand Down

0 comments on commit 60b461a

Please sign in to comment.