b54dae7e15
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
15 lines
369 B
Elixir
15 lines
369 B
Elixir
defmodule MobilizonWeb.AuthPipeline do
|
|
@moduledoc """
|
|
Handles the app sessions
|
|
"""
|
|
|
|
use Guardian.Plug.Pipeline,
|
|
otp_app: :mobilizon,
|
|
module: MobilizonWeb.Guardian,
|
|
error_handler: MobilizonWeb.AuthErrorHandler
|
|
|
|
plug(Guardian.Plug.VerifyHeader, realm: "Bearer")
|
|
plug(Guardian.Plug.LoadResource, allow_blank: true)
|
|
plug(MobilizonWeb.Context)
|
|
end
|