Skip to content

Commit

Permalink
Merge pull request #5596 from SNikalaichyk/Dev
Browse files Browse the repository at this point in the history
Added UseBasicParsing to Invoke-WebRequest calls for AADVerifiedIdAuthority, AADVerifiedIdAuthorityContract, and AzureVerifiedIdFaceCheck
  • Loading branch information
NikCharlebois authored Dec 27, 2024
2 parents b89fcc9 + cea6565 commit 5327339
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -575,11 +575,11 @@ function Invoke-M365DSCVerifiedIdWebRequest
if ($Method -eq 'PATCH' -or $Method -eq 'POST')
{
$BodyJson = $body | ConvertTo-Json
$response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers -Body $BodyJson
$response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers -Body $BodyJson -UseBasicParsing
}
else
{
$response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers
$response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers -UseBasicParsing
}

if ($Method -eq 'DELETE')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -922,11 +922,11 @@ function Invoke-M365DSCVerifiedIdWebRequest
if ($Method -eq 'PATCH' -or $Method -eq 'POST')
{
$BodyJson = $body | ConvertTo-Json -Depth 10
$response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers -Body $BodyJson
$response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers -Body $BodyJson -UseBasicParsing
}
else
{
$response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers
$response = Invoke-WebRequest -Method $Method -Uri $Uri -Headers $headers -UseBasicParsing
}

if ($Method -eq 'DELETE')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ function Export-TargetResource
Authorization = (Get-MSCloudLoginConnectionProfile -Workload AdminAPI).AccessToken
}
$uri = 'https://verifiedid.did.msidentity.com/v1.0/verifiableCredentials/authorities'
$response = Invoke-WebRequest -Uri $uri -Method Get -Headers $headers
$response = Invoke-WebRequest -Uri $uri -Method Get -Headers $headers -UseBasicParsing
$authorities = ConvertFrom-Json $response.Content

$resourceGroups = Get-AzResourceGroup -ErrorAction Stop
Expand Down

0 comments on commit 5327339

Please sign in to comment.