mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-11 09:32:51 +00:00
init
This commit is contained in:
9
lib/myapp/auth/pipeline.ex
Normal file
9
lib/myapp/auth/pipeline.ex
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
Reference in New Issue
Block a user