plug_mishka_auth v0.0.2 MishkaAuth.Client.Identity.ClientIdentityQuery View Source
this module helps us to handle users identity and connect to identity database and extrenal site to login.
Link to this section Summary
Functions
this function insers your identity
with this function you can delete identity with identity_id
with this function you can update and edit user identity with identity system id
find user identity with user_id and provider
find user identity with identity_id and provider
Link to this section Types
Link to this section Functions
Specs
add_identity(map()) :: {:error, :add_identity, Ecto.Changeset.t()} | {:ok, :add_identity, Ecto.Schema.t()}
this function insers your identity
Specs
add_with_user_redis_data(binary(), any()) :: {:error, :add_with_user_redis_data} | {:error, :add_identity, Ecto.Changeset.t()} | {:ok, :add_identity, %{optional(atom()) => any()}}
Specs
delete_identity(uid()) :: {:error, :delete_identity, :user_doesnt_exist} | {:ok, :delete_identity, Ecto.Schema.t()} | {:error, :edit_user, :data_input_problem, Ecto.Changeset.t()} | {:error, :delete_identity, :forced_to_delete}
with this function you can delete identity with identity_id
Specs
edit_identity(uid(), map()) :: {:error, :edit_identity, :identity_doesnt_exist} | {:ok, :edit_identity, Ecto.Schema.t()} | {:error, :edit_identity, :data_input_problem, Ecto.Changeset.t()}
with this function you can update and edit user identity with identity system id
Specs
find_identity(uid()) :: {:error, :find_identity} | {:ok, :find_identity, Ecto.Schema.t()}
Specs
Specs
find_user_identity(user_id(), provider()) :: {:error, :find_user_identity, provider()} | {:ok, :find_user_identity, Ecto.Schema.t()}
find user identity with user_id and provider
Specs
find_user_identity_with_uid(uid(), provider()) :: {:error, :find_user_identity_with_uid, provider()} | {:ok, :find_user_identity_with_uid, Ecto.Schema.t(), provider()}
find user identity with identity_id and provider