Pleroma v1.1.9-10-g42f76306+dev Pleroma.Web.Auth.Authenticator behaviour View Source
Link to this section Summary
Functions
Gets user by nickname or email for auth.
Link to this section Functions
Link to this function
fetch_credentials(_)
View Sourcefetch_credentials(Plug.Conn.t() | map()) :: {:ok, {name :: any(), password :: any()}} | {:error, :invalid_credentials}
Gets user by nickname or email for auth.
Link to this section Callbacks
Link to this callback
create_from_registration(arg1, arg2)
View Sourcecreate_from_registration(Plug.Conn.t(), Pleroma.Registration.t()) :: {:ok, Pleroma.User.t()} | {:error, any()}
Link to this callback
get_registration(arg1)
View Sourceget_registration(Plug.Conn.t()) :: {:ok, Pleroma.Registration.t()} | {:error, any()}
Link to this callback
get_user(arg1)
View Sourceget_user(Plug.Conn.t()) :: {:ok, Pleroma.User.t()} | {:error, any()}
Link to this callback
handle_error(arg1, any)
View Sourcehandle_error(Plug.Conn.t(), any()) :: any()
Link to this callback
oauth_consumer_template()
View Sourceoauth_consumer_template() :: String.t() | nil