mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-24 00:43:02 +00:00
b54dae7e15
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
14 lines
369 B
Elixir
14 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
|