Skip to content

Conversation

@sfc-gh-turbaszek
Copy link
Contributor

@sfc-gh-turbaszek sfc-gh-turbaszek commented Oct 28, 2025

Fixes support for redirect_uri. Copy of #2400

@sfc-gh-turbaszek sfc-gh-turbaszek requested a review from a team as a code owner October 28, 2025 12:54
@sfc-gh-turbaszek sfc-gh-turbaszek force-pushed the turbaszek-SNOW-2194055-split-server-redirect-uris branch from a57bbe5 to 00665af Compare October 28, 2025 12:55

def _read_uri_from_env(self) -> str:
oauth_socket_address = os.getenv(
ENV_VAR_OAUTH_SOCKET_ADDRESS, "http://localhost"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

localhost, not http://localhost ?

Generally, this separation of host and port in this way rather than having the address specified as a hostport seems weird to me. Can you ensure the description explains why were are doing it this way?

Copy link
Contributor

@sfc-gh-fpawlowski sfc-gh-fpawlowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left minor comment regarding the flow of configuration

with AuthHttpServer(self._redirect_uri) as callback_server:
with AuthHttpServer(
redirect_uri=self._redirect_uri,
uri=self._read_uri_from_env(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we intend to expose this only through this env variable? Or should customer be able to pass oauth_socket_address through connection params? Is it known at the start time of the application and should be only possible to override with this env var?

Anyway we may need to create a separate Jira ticket to update the docs to include this new parameter in OAuth documentation for Python Driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants