defmodule <%= inspect context.web_module %>.Auth.Curator do use Curator, otp_app: :<%= Mix.Phoenix.otp_app() %>, guardian: <%= inspect context.web_module %>.Auth.Guardian, modules: [] end defmodule <%= inspect context.web_module %>.Auth.Curator.UnauthenticatedPipeline do use Plug.Builder plug Guardian.Plug.Pipeline, module: <%= inspect context.web_module %>.Auth.Guardian, error_handler: <%= inspect context.web_module %>.Auth.ErrorHandler plug Guardian.Plug.VerifySession plug Curator.Plug.LoadResource, allow_unauthenticated: true # plug Curator.Timeoutable.Plug, timeoutable_module: <%= inspect context.web_module %>.Auth.Timeoutable end defmodule <%= inspect context.web_module %>.Auth.Curator.AuthenticatedPipeline do use Plug.Builder plug Guardian.Plug.Pipeline, module: <%= inspect context.web_module %>.Auth.Guardian, error_handler: <%= inspect context.web_module %>.Auth.ErrorHandler plug Guardian.Plug.VerifySession plug Curator.Plug.LoadResource # plug Curator.Timeoutable.Plug, timeoutable_module: <%= inspect context.web_module %>.Auth.Timeoutable end