fix: respect imported oauth authorization headers

This commit is contained in:
elky
2026-06-21 02:27:06 +08:00
parent f1c30439ff
commit 8dbd730568
2 changed files with 153 additions and 0 deletions
@@ -3190,6 +3190,10 @@ async fn provider_query_execute_standard_test_candidate(
),
},
};
crate::provider_transport::apply_local_auth_config_header_overrides(
&mut request_headers,
transport.key.decrypted_auth_config.as_deref(),
);
if uses_vertex_query_auth {
request_headers.remove("x-goog-api-key");
}
@@ -3239,6 +3243,10 @@ async fn provider_query_execute_standard_test_candidate(
Some(trace_id),
transport.key.decrypted_auth_config.as_deref(),
);
crate::provider_transport::apply_local_auth_config_header_overrides(
&mut request_headers,
transport.key.decrypted_auth_config.as_deref(),
);
}
if !uses_vertex_query_auth {
if let (Some(auth_header), Some(auth_value)) =