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

Handles session creation and deletion (login/logout).

Link to this section Summary

Functions

Try and figure out if credential is a username, a Fediverse server or an other useable identifier and dispatch the proper provider.

Link to this section Functions

Link to this function

create_session(conn, user)

View Source

Specs

create_session(Plug.Conn.t(), CPub.User.t()) :: Plug.Conn.t()

Specs

login(Plug.Conn.t(), map()) :: Plug.Conn.t()

Try and figure out if credential is a username, a Fediverse server or an other useable identifier and dispatch the proper provider.

Specs

logout(Plug.Conn.t(), map()) :: Plug.Conn.t()

Specs

render_login(Plug.Conn.t()) :: Plug.Conn.t()

Specs

show(Plug.Conn.t(), map()) :: Plug.Conn.t()