Pow v0.1.0-alpha.1 Pow.Plug View Source

Authorization methods for Plug.

Link to this section Summary

Link to this section Functions

Link to this function assign_current_user(conn, user, config) View Source
assign_current_user(Plug.Conn.t(), any(), Pow.Config.t()) :: Plug.Conn.t()
Link to this function authenticate_user(conn, params) View Source
authenticate_user(Plug.Conn.t(), map()) ::
  {:ok, map(), Plug.Conn.t()} | {:error, map(), Plug.Conn.t()} | no_return()
Link to this function change_user(conn, params \\ %{}) View Source
change_user(Plug.Conn.t(), map()) :: map()
Link to this function clear_authenticated_user(conn) View Source
clear_authenticated_user(Plug.Conn.t()) :: {:ok, Plug.Conn.t()} | no_return()
Link to this function create_user(conn, params) View Source
create_user(Plug.Conn.t(), map()) ::
  {:ok, map(), Plug.Conn.t()} | {:error, map(), Plug.Conn.t()} | no_return()
Link to this function current_user(conn) View Source
current_user(Plug.Conn.t()) :: map() | nil | no_return()
Link to this function current_user(map, config) View Source
current_user(Plug.Conn.t(), Pow.Config.t()) :: map() | nil
Link to this function delete_user(conn) View Source
delete_user(Plug.Conn.t()) ::
  {:ok, map(), Plug.Conn.t()} | {:error, map(), Plug.Conn.t()} | no_return()
Link to this function put_config(conn, config) View Source
put_config(Plug.Conn.t(), Pow.Config.t()) :: Plug.Conn.t()
Link to this function update_user(conn, params) View Source
update_user(Plug.Conn.t(), map()) ::
  {:ok, map(), Plug.Conn.t()} | {:error, map(), Plug.Conn.t()} | no_return()