Merge pull request #17780 from XpiritBV/support-azdo-identities

feat(azure): support service principals and managed identities
This commit is contained in:
Ben Lambert
2023-05-29 12:44:15 +02:00
committed by GitHub
12 changed files with 436 additions and 37 deletions
@@ -58,9 +58,9 @@ export async function codeSearch(
do {
const response = await fetch(searchUrl, {
...getAzureRequestOptions(azureConfig, {
...(await getAzureRequestOptions(azureConfig, {
'Content-Type': 'application/json',
}),
})),
method: 'POST',
body: JSON.stringify({
searchText: `path:${path} repo:${repo || '*'} proj:${project || '*'}`,