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

Summary

Callbacks

Link to this callback

process(conn, provider, mapped_user, response)

View Source
@callback process(
  conn :: Plug.Conn.t(),
  provider :: atom(),
  mapped_user :: KeenAuth.User.t() | map(),
  response :: KeenAuth.AuthenticationController.oauth_callback_response() | nil
) ::
  {:ok, Plug.Conn.t(), KeenAuth.User.t() | map(),
   KeenAuth.AuthenticationController.oauth_callback_result() | nil}
  | Plug.Conn.t()
Link to this callback

sign_out(conn, provider, params)

View Source
@callback sign_out(conn :: Plug.Conn.t(), provider :: binary(), params :: map()) ::
  Plug.Conn.t()

Functions

Link to this function

current_processor(conn, provider)

View Source
Link to this function

get_processor(config, provider)

View Source
Link to this function

process(conn, provider, mapped_user, oauth_response)

View Source
Link to this function

sign_out(conn, provider, params)

View Source