Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose proxy_user and proxy_password from SnowflakeConnection to SnowflakeCredentials class #1303

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dbt/adapters/snowflake/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ class SnowflakeCredentials(Credentials):
port: Optional[int] = None
proxy_host: Optional[str] = None
proxy_port: Optional[int] = None
proxy_user: Optional[str] = None
proxy_password: Optional[str] = None
protocol: Optional[str] = None
connect_retries: int = 1
connect_timeout: Optional[int] = None
Expand Down Expand Up @@ -172,6 +174,8 @@ def _connection_keys(self):
"port",
"proxy_host",
"proxy_port",
"proxy_user",
"proxy_password",
"protocol",
"connect_retries",
"connect_timeout",
Expand All @@ -197,6 +201,10 @@ def auth_args(self):
result["proxy_host"] = self.proxy_host
if self.proxy_port:
result["proxy_port"] = self.proxy_port
if self.proxy_user:
result["proxy_user"] = self.proxy_user
if self.proxy_password:
result["proxy_password"] = self.proxy_password
if self.protocol:
result["protocol"] = self.protocol
if self.authenticator:
Expand Down