plug_mishka_auth v0.0.2 MishkaAuth.Helper.HandleDirectRequest View Source

Link to this section Summary

Functions

you can get email and password of user and create refresh_token for mobile app. this is Owner Password Credentials Grant json mobile application strategy it should be noted, grant_type and scope will be added for handling your user request and requested data.

you can get username and password of user and create refresh_token for mobile app and token or current_user for storing session . this is Owner Password Credentials Grant json mobile application strategy and html render. it should be noted, grant_type and scope will be added for handling your user request and requested data.

Link to this section Types

Specs

email() :: String.t()

Specs

password() :: String.t()

Specs

temporary_id() :: Ecto.UUID.t()

Specs

username() :: String.t()

Link to this section Functions

Link to this function

login_with_email(atom, conn, email, password)

View Source

Specs

login_with_email(atom(), Plug.Conn.t(), email(), password()) :: Plug.Conn.t()

you can get email and password of user and create refresh_token for mobile app. this is Owner Password Credentials Grant json mobile application strategy it should be noted, grant_type and scope will be added for handling your user request and requested data.

Link to this function

login_with_username(atom, conn, username, password)

View Source

Specs

login_with_username(atom(), Plug.Conn.t(), username(), password()) ::
  Plug.Conn.t()

you can get username and password of user and create refresh_token for mobile app and token or current_user for storing session . this is Owner Password Credentials Grant json mobile application strategy and html render. it should be noted, grant_type and scope will be added for handling your user request and requested data.

    {
      :refresh_token,
      :current_token,
      :current_user
    }
Link to this function

register(conn, params, atom, type)

View Source

Specs

register(Plug.Conn.t(), map(), :normal, :html | :json) :: Plug.Conn.t()
Link to this function

register(conn, params, temporary_id, atom, type)

View Source

Specs

register(Plug.Conn.t(), map(), temporary_id(), :social, :html | :json) ::
  Plug.Conn.t()