Pleroma v1.1.9-10-g42f76306+dev Pleroma.Web.Auth.Authenticator behaviour View Source

Link to this section Summary

Link to this section Functions

Link to this function

create_from_registration(plug, registration)

View Source
Link to this function

fetch_credentials(_)

View Source
fetch_credentials(Plug.Conn.t() | map()) ::
  {:ok, {name :: any(), password :: any()}} | {:error, :invalid_credentials}
Link to this function

fetch_user(name)

View Source
fetch_user(String.t()) :: Pleroma.User.t() | nil

Gets user by nickname or email for auth.

Link to this function

handle_error(plug, error)

View Source
Link to this function

oauth_consumer_template()

View Source

Link to this section Callbacks

Link to this callback

auth_template()

View Source
auth_template() :: String.t() | nil
Link to this callback

create_from_registration(arg1, arg2)

View Source
create_from_registration(Plug.Conn.t(), Pleroma.Registration.t()) ::
  {:ok, Pleroma.User.t()} | {:error, any()}
Link to this callback

get_registration(arg1)

View Source
get_registration(Plug.Conn.t()) ::
  {:ok, Pleroma.Registration.t()} | {:error, any()}
Link to this callback

get_user(arg1)

View Source
get_user(Plug.Conn.t()) :: {:ok, Pleroma.User.t()} | {:error, any()}
Link to this callback

handle_error(arg1, any)

View Source
handle_error(Plug.Conn.t(), any()) :: any()
Link to this callback

oauth_consumer_template()

View Source
oauth_consumer_template() :: String.t() | nil