We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7018df5 commit11e758fCopy 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")orPYSQL_OAUTH_CLIENT_ID,
93
-oauth_redirect_port_range=[kwargs.get("oauth_redirect_port")]
94
-ifkwargs.get("oauth_client_id")
+oauth_redirect_port_range=[kwargs["oauth_redirect_port"]]
+ifkwargs.get("oauth_client_id")andkwargs.get("oauth_redirect_port")
95
elsePYSQL_OAUTH_REDIRECT_PORT_RANGE,
96
oauth_persistence=kwargs.get("experimental_oauth_persistence"),
97
)