bnspopi commented on code in PR #62043:
URL: https://github.com/apache/airflow/pull/62043#discussion_r2815314546
##########
providers/snowflake/src/airflow/providers/snowflake/hooks/snowflake.py:
##########
@@ -314,7 +314,22 @@ def _get_conn_params(self) -> dict[str, str | None]:
conn_config = dict(static_config)
if conn_config.get("authenticator") == "oauth":
- azure_conn_id = conn_config.get("azure_conn_id")
Review Comment:
if conn_config.get("authenticator") == "oauth":
# Static token case (PAT-style token)
if conn_config.get("token"):
conn_config["access_token"] = conn_config.get("token")
return conn_config
# Otherwise follow normal OAuth flow
conn_config["access_token"] = self._get_valid_oauth_token(conn_config)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]