Skip to content

Commit

Permalink
Update kong/plugins/standard-webhooks/internal.lua
Browse files Browse the repository at this point in the history
Co-authored-by: Samuele <samuele@konghq.com>
  • Loading branch information
zekth and samugi authored May 8, 2024
1 parent 12dbafe commit 6bc2764
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions kong/plugins/standard-webhooks/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,10 @@ local function access(config)

local expected_signature = sign(config.secret_v1, id, ts, body)

if signature == expected_signature then
return
if signature ~= expected_signature then
kong.log.debug("signature not matched")
return kong.response.error(400)
end

kong.log.debug("signature not matched")
return kong.response.error(400)
end

return {
Expand Down

0 comments on commit 6bc2764

Please sign in to comment.