Current section
Files
Jump to
Current section
Files
lib/pipeline/api_key_secured.ex
defmodule BtrzAuth.Pipeline.ApiKeySecured do
@moduledoc """
This pipeline will check the x-api-key header is sent and load the implemented resource in `conn.private[:application]`.
"""
use Guardian.Plug.Pipeline,
otp_app: :btrz_auth,
error_handler: BtrzAuth.AuthErrorHandler
plug(BtrzAuth.Plug.VerifyApiKey)
end