File tree 1 file changed +2
-5
lines changed
airflow/providers/microsoft/azure/hooks
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def get_ui_field_behaviour() -> dict[str, Any]:
106
106
"placeholders" : {
107
107
"login" : "Varies with authentication method" ,
108
108
"password" : "Varies with authentication method" ,
109
- "auth_method" : "AAD_APP/AAD_APP_CERT/AAD_CREDS/AAD_DEVICE" ,
109
+ "auth_method" : "AAD_APP/AAD_APP_CERT/AAD_CREDS/AAD_DEVICE/AZURE_TOKEN_CRED " ,
110
110
"tenant" : "Used with AAD_APP/AAD_APP_CERT/AAD_CREDS" ,
111
111
"certificate" : "Used with AAD_APP_CERT" ,
112
112
"thumbprint" : "Used with AAD_APP_CERT" ,
@@ -185,12 +185,9 @@ def get_required_param(name: str) -> str:
185
185
elif auth_method == "AAD_DEVICE" :
186
186
kcsb = KustoConnectionStringBuilder .with_aad_device_authentication (cluster )
187
187
elif auth_method == "AZURE_TOKEN_CRED" :
188
- credential = conn .password
189
- if not credential :
190
- credential = DefaultAzureCredential ()
191
188
kcsb = KustoConnectionStringBuilder .with_azure_token_credential (
192
189
connection_string = cluster ,
193
- credential = credential ,
190
+ credential = DefaultAzureCredential () ,
194
191
)
195
192
else :
196
193
raise AirflowException (f"Unknown authentication method: { auth_method } " )
You can’t perform that action at this time.
0 commit comments