Skip to content

Commit

Permalink
Merge pull request #1185 from JohnDuprey/dev
Browse files Browse the repository at this point in the history
fix public webhooks issue
  • Loading branch information
JohnDuprey authored Nov 14, 2024
2 parents 0e5b281 + 882f06c commit 62c03a6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ function Invoke-PublicWebhooks {
}
Add-CIPPAzDataTableEntity @WebhookIncoming -Entity $Entity
} else {
return 'Not replying to this webhook or processing it'
$Body = 'This webhook is not authorized.'
$StatusCode = [HttpStatusCode]::Forbidden
}
$Body = 'Webhook Recieved'
$StatusCode = [HttpStatusCode]::OK
Expand All @@ -80,4 +81,4 @@ function Invoke-PublicWebhooks {
StatusCode = $StatusCode
Body = $Body
})
}
}

0 comments on commit 62c03a6

Please sign in to comment.