logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

authenticator.ex (684B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Web.Auth.Authenticator do
  5. @callback get_user(Plug.Conn.t()) :: {:ok, user :: struct()} | {:error, any()}
  6. @callback create_from_registration(Plug.Conn.t(), registration :: struct()) ::
  7. {:ok, Pleroma.User.t()} | {:error, any()}
  8. @callback get_registration(Plug.Conn.t()) :: {:ok, registration :: struct()} | {:error, any()}
  9. @callback handle_error(Plug.Conn.t(), any()) :: any()
  10. @callback auth_template() :: String.t() | nil
  11. @callback oauth_consumer_template() :: String.t() | nil
  12. end