mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-10 09:02:50 +00:00
10 lines
366 B
Elixir
10 lines
366 B
Elixir
defmodule MyApp.Guardian.AuthPipeline.JSON do
|
|
use Guardian.Plug.Pipeline, otp_app: :MyApp,
|
|
module: MyApp.Guardian,
|
|
error_handler: MyApp.Auth.ErrorHandler
|
|
|
|
plug Guardian.Plug.VerifyHeader, realm: "Bearer"
|
|
plug Guardian.Plug.EnsureAuthenticated
|
|
plug Guardian.Plug.LoadResource, allow_blank: true
|
|
end
|