auth0_ex v0.1.4 Auth0Ex.Authentication.Login
A module that handles login stuff for authentication API
Summary
Functions
Given the user credentials and the connection specified, it will do the authentication
on the provider and return a JSON with the access_token
and id_token
Given the social provider’s access_token and the connection, this endpoint will authenticate
the user with the provider and return a JSON with the access_token
and, optionally, an id_token
.
This endpoint only works for Facebook, Google, Twitter and Weibo
Functions
Given the user credentials and the connection specified, it will do the authentication
on the provider and return a JSON with the access_token
and id_token
.
You can pass optional parameters as a map in the last params
argument.
An example params map would be:
%{scope: "openid app_metadata"}
%{device: "ios", id_token: "id_token_touchid"}
iex> Auth0Ex.Authentication.Login.database("client_id", "samar", "samarpwd", "dev", "password")
iex> Auth0Ex.Authentication.Login.database("client_id", "samar", "samarpwd", "dev", "password", %{scope: "openid app_metadata"})
Given the social provider’s access_token and the connection, this endpoint will authenticate the user with the provider and return a JSON with the
access_token
and, optionally, anid_token
. This endpoint only works for Facebook, Google, Twitter and Weibo.