CPub.Web.Authentication.ProviderController (CPub v0.3.0) View Source

Implements interactive user authentication by means of different providers.

If authentication is successfull a CPub.Web.Authentication.Session will be stored in the Plug.Session.

Link to this section Summary

Link to this section Functions

Specs

callback(Plug.Conn.t(), map()) :: Plug.Conn.t()
Link to this function

callback_external_provider(conn, site, provider, external_id, username)

View Source

Specs

callback_external_provider(
  Plug.Conn.t(),
  String.t(),
  atom(),
  String.t(),
  String.t()
) ::
  Plug.Conn.t()

Specs

request(Plug.Conn.t(), map()) :: Plug.Conn.t() | {:error, any()}