auth0_ex v0.3.1 Auth0Ex.Management.Connection View Source

A module representing connection resource

Link to this section Summary

Functions

Gets all the connections

Creates a new connection

Delete a connection

Delete a specified connection user by its email

Get a connection

Update a connection

Link to this section Functions

Gets all the connections

iex> Auth0Ex.Management.Connection.all()
iex> Auth0Ex.Management.Connection.all(%{name: "some_name"})

Creates a new connection

iex> Auth0Ex.Management.Connection.create(%{name: "some_name", strategy: "email"})

Delete a connection

iex> Auth0Ex.Management.Connection.delete("some_conn_id")
Link to this function

delete_conn_user(id, email) View Source

Delete a specified connection user by its email

iex> Auth0Ex.Management.Connection.delete_conn_user("some_conn_id", "samar@example.com")

Get a connection

iex> Auth0Ex.Management.Connection.get("some_conn_id")
iex> Auth0Ex.Management.Connection.get("some_conn_id", [fields: "id,name"])

Update a connection

iex> Auth0Ex.Management.Connection.update("some_conn_id", %{name: "new name"})