Update Invoke-ZertoRestRequest.ps1
This commit is contained in:
@@ -61,11 +61,15 @@ function Invoke-ZertoRestRequest {
|
||||
Uri = $submittedURI
|
||||
Method = $method
|
||||
Headers = $headers
|
||||
Body = $body
|
||||
TimeoutSec = 100
|
||||
ContentType = "application/json"
|
||||
}
|
||||
|
||||
# Ensure GET requests do not include a body
|
||||
if ($method -ne "GET") {
|
||||
$params["Body"] = $body
|
||||
}
|
||||
|
||||
# Handle authentication requests
|
||||
if ($uri -match "auth/realms/.*/protocol/openid-connect/token" -and $method -eq "POST") {
|
||||
$data = @{
|
||||
|
||||
Reference in New Issue
Block a user