This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Description
My use-case is pretty simple: I want to use webhooks with a secret key.
Both parties know this value.
And currently I write this code:
plug PlugRequireHeader, headers: [auth_token: "X-Gitlab-Token"]
plug :verify_auth_token
And then I actually verify it.
So, my proposal is to allow something like:
plug PlugRequireHeader, headers: [auth_token: %{"X-Gitlab-Token" => System.get_env("SECRET_KEY")}]