Skip to content

Commit

Permalink
Standard Webhooks: Take 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpursley committed Dec 27, 2023
1 parent 4b53354 commit 3958b4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/webhoox/adapters/standard_webhook.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule Webhoox.Adapter.StandardWebhook do
@moduledoc """
Standard Webhook Adapter
Read more here: https://standardwebhooks.com
"""
import Plug.Conn
import Webhoox.Utility.Response
Expand Down
5 changes: 4 additions & 1 deletion lib/webhoox/authentication/standard_webhook.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
defmodule Webhoox.Authentication.StandardWebhook do
@moduledoc false
@moduledoc """
Standard Webhook Authentication (verify and sign)
Read more here: https://standardwebhooks.com
"""
import Plug.Conn

@secret_prefix "whsec_"
Expand Down
2 changes: 0 additions & 2 deletions test/authentication/standard_webhook_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ defmodule Webhoox.Authentication.StandardWebhookTest do
alias Webhoox.Authentication.StandardWebhook, as: Authentication

@id "msg_p5jXN8AQM9LWM0D4loKWxJek"
# temp, generate this for current time!
# @timestamp 1_674_087_231
@timestamp :os.system_time(:second)
@tolerance 5 * 60
@payload %{"event_type" => "ping"}
Expand Down

0 comments on commit 3958b4b

Please sign in to comment.