debianize-mobilizon/lib/mobilizon_web/auth/pipeline.ex

15 lines
381 B
Elixir
Raw Normal View History

2020-01-23 21:59:50 +01:00
defmodule MobilizonWeb.Auth.Pipeline do
@moduledoc """
Handles the app sessions
"""
2017-12-09 14:58:37 +01:00
use Guardian.Plug.Pipeline,
otp_app: :mobilizon,
2020-01-23 21:59:50 +01:00
module: MobilizonWeb.Auth.Guardian,
error_handler: MobilizonWeb.Auth.ErrorHandler
2017-12-09 14:58:37 +01:00
plug(Guardian.Plug.VerifyHeader, realm: "Bearer")
plug(Guardian.Plug.LoadResource, allow_blank: true)
2020-01-23 21:59:50 +01:00
plug(MobilizonWeb.Auth.Context)
end