mobilizon/lib/web/auth/pipeline.ex

15 lines
386 B
Elixir
Raw Normal View History

2020-01-26 20:36:50 +00:00
defmodule Mobilizon.Web.Auth.Pipeline do
@moduledoc """
Handles the app sessions
"""
2017-12-09 13:58:37 +00:00
use Guardian.Plug.Pipeline,
otp_app: :mobilizon,
2020-01-26 20:36:50 +00:00
module: Mobilizon.Web.Auth.Guardian,
error_handler: Mobilizon.Web.Auth.ErrorHandler
2017-12-09 13:58:37 +00:00
plug(Guardian.Plug.VerifyHeader, scheme: "Bearer")
plug(Guardian.Plug.LoadResource, allow_blank: true)
2020-01-26 20:36:50 +00:00
plug(Mobilizon.Web.Auth.Context)
end