Packages

This library is a summary of the functions that are generally required for Web service development.

Current section

Files

Jump to
servicex lib servicex authenticator authenticate_pipline.ex
Raw

lib/servicex/authenticator/authenticate_pipline.ex

defmodule Servicex.AuthenticatePipeline do
use Guardian.Plug.Pipeline, otp_app: :servicex,
module: Servicex.Authenticator,
error_handler: Servicex.AuthenticateErrorHandler
plug Guardian.Plug.VerifySession, claims: %{"typ" => "access"}
#plug Servicex.Plug.Debug
plug Guardian.Plug.VerifyHeader, claims: %{"typ" => "access"}
#plug Servicex.Plug.Debug
plug Guardian.Plug.EnsureAuthenticated
#plug Servicex.Plug.Debug
plug Guardian.Plug.LoadResource, allow_blank: true
plug Servicex.Plug.Debug
end