We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7018df5 commit 11e758fCopy full SHA for 11e758f
src/databricks/sql/auth/auth.py
@@ -90,8 +90,8 @@ def get_python_sql_connector_auth_provider(hostname: str, **kwargs):
90
tls_client_cert_file=kwargs.get("_tls_client_cert_file"),
91
oauth_scopes=PYSQL_OAUTH_SCOPES,
92
oauth_client_id=kwargs.get("oauth_client_id") or PYSQL_OAUTH_CLIENT_ID,
93
- oauth_redirect_port_range=[kwargs.get("oauth_redirect_port")]
94
- if kwargs.get("oauth_client_id")
+ oauth_redirect_port_range=[kwargs["oauth_redirect_port"]]
+ if kwargs.get("oauth_client_id") and kwargs.get("oauth_redirect_port")
95
else PYSQL_OAUTH_REDIRECT_PORT_RANGE,
96
oauth_persistence=kwargs.get("experimental_oauth_persistence"),
97
)
0 commit comments