feat(azure): support service principals and managed identities

Signed-off-by: Sander Aernouts <sander.aernouts@gmail.com>
This commit is contained in:
Sander Aernouts
2023-05-12 16:08:47 +02:00
parent 6325e9cd11
commit c7f848bcea
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 || '*'}`,