View Source Auth0Ex.Authentication.Login (auth0_ex v0.9.0)
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
Link to this function
database(client_id, username, password, connection, grant_type, params \\ %{})
View SourceGiven 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"})
social(client_id, access_token, connection, scope \\ "openid")
View SourceGiven 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.