View Source KeenAuth.EmailAuthenticationHandler behaviour (KeenAuth v0.2.2)

Summary

Callbacks

Link to this callback

authenticate(conn, params)

View Source
@callback authenticate(conn :: Plug.Conn.t(), params :: map()) ::
  {:ok, map()} | {:error, :unauthenticated}
Link to this callback

handle_authenticated(conn, user)

View Source
@callback handle_authenticated(conn :: Plug.Conn.t(), user :: KeenAuth.User.t()) ::
  Plug.Conn.t()
Link to this callback

handle_unauthenticated(conn, params, err)

View Source
@callback handle_unauthenticated(
  conn :: Plug.Conn.t(),
  params :: map(),
  err :: {atom(), any()}
) ::
  Plug.Conn.t()

Functions

Link to this function

authenticate(conn, params)

View Source
Link to this function

current_authentication_handler!(conn)

View Source
Link to this function

get_authentication_handler!(config)

View Source
Link to this function

handle_authenticated(conn, user)

View Source
Link to this function

handle_unauthenticated(conn, params, err)

View Source