mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 16:33:28 +00:00
14 lines
385 B
Elixir
14 lines
385 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, realm: "Bearer")
|
|
plug(Guardian.Plug.LoadResource, allow_blank: true)
|
|
plug(Mobilizon.Web.Auth.Context)
|
|
end
|