Skip to content
Set of webhook Plug middleware
Elixir Nix
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/cobwebhook
.formatter.exs
.gitignore
COPYING
README.md
mix.exs
shell.nix

README.md

Cobwebhook

Set of plugs that do authentication and payload processing for various services.

API

Use as a part of Plug pipeline:

defmodule Pipeline do
  use Plug.Builder

  def secrets do
   ["1cb606ad1ccf30f99f60c8bc1d0bfec9"]
  end

  plug Cobwebhook.Slack, &__MODULE__.secrets/0
  plug Webhook
end

Takes a function that returns a list of valid secrets. On valid request, sets conn.body_params and conn.assigns.secret and forwards request to the next plug in the pipeline.

You can’t perform that action at this time.