forked from potsda.mn/mobilizon
8c480af4bd
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
15 lines
386 B
Elixir
15 lines
386 B
Elixir
defmodule Mobilizon.Web.Auth.Pipeline do
|
|
@moduledoc """
|
|
Handles the app sessions
|
|
"""
|
|
|
|
use Guardian.Plug.Pipeline,
|
|
otp_app: :mobilizon,
|
|
module: Mobilizon.Web.Auth.Guardian,
|
|
error_handler: Mobilizon.Web.Auth.ErrorHandler
|
|
|
|
plug(Guardian.Plug.VerifyHeader, scheme: "Bearer")
|
|
plug(Guardian.Plug.LoadResource, allow_blank: true)
|
|
plug(Mobilizon.Web.Auth.Context)
|
|
end
|