plug_mishka_auth v0.0.2 MishkaAuth.Strategy View Source

Link to this section Summary

Link to this section Types

Specs

auth_version() :: float() | integer()

Specs

conn() :: Plug.Conn.t()

Specs

error_msg() :: String.t()

Specs

redirect_url() :: String.t()

Specs

strategy_type() :: atom()

Specs

token() :: String.t()

Specs

user_id() :: Ecto.UUID.t()

Link to this section Functions

Link to this function

auth_error_strategy(conn, strategy_type, errors, status)

View Source

Specs

auth_error_strategy(Plug.Conn.t(), atom(), [any()] | map(), any()) ::
  Plug.Conn.t()
Link to this function

failed_none_registered_user_routing(conn, attrs, status, atom)

View Source

Specs

failed_none_registered_user_routing(
  Plug.Conn.t(),
  map(),
  integer(),
  :refresh_token | :current_user | :current_token
) :: Plug.Conn.t()
Link to this function

none_registered_user_routing(conn, user_temporary_data, temporary_user_uniq_id, status, atom)

View Source

Specs

none_registered_user_routing(
  Plug.Conn.t(),
  map(),
  user_id(),
  any(),
  :refresh_token | :current_user | :current_token
) :: Plug.Conn.t()
Link to this function

registered_user_routing(user_id, conn, atom, int)

View Source

Specs

registered_user_routing(
  user_id(),
  Plug.Conn.t(),
  :current_user | :current_token | :refresh_token,
  auth_version()
) :: Plug.Conn.t()
Link to this function

saving_user_info_and_indentities(conn, user_temporary_data, temporary_user_uniq_id)

View Source

Specs

saving_user_info_and_indentities(Plug.Conn.t(), map(), user_id()) ::
  Plug.Conn.t()