PowAssent v0.4.2 PowAssent.Operations View Source
Operation methods that glues operation calls to context module.
A custom context module can be used instead of the default
PowAssent.Ecto.UserIdentities.Context
if a :user_identities_context
key
is passed in the configuration.
Link to this section Summary
Functions
Lists all user identity associations for user.
Creates user with user identity with the provided user params.
Deletes the user identity for user and strategy provider name.
Retrieve a user with the strategy provider name and uid.
Upserts user identity for the user, and strategy provider name and uid.
Link to this section Functions
all(user, config)
View Sourceall(map(), PowAssent.Config.t()) :: [map()] | no_return()
Lists all user identity associations for user.
This calls Pow.Ecto.UserIdentities.Context.all/2
or
all/1
on a custom context module.
create_user(user_identity_params, user_params, user_id_params, config)
View SourceCreates user with user identity with the provided user params.
This calls Pow.Ecto.UserIdentities.Context.create_user/4
or
create_user/3
on a custom context module.
Deletes the user identity for user and strategy provider name.
This calls Pow.Ecto.UserIdentities.Context.delete/3
or
delete/2
on a custom context module.
get_user_by_provider_uid(provider, uid, config)
View Sourceget_user_by_provider_uid(binary(), binary(), PowAssent.Config.t()) :: map() | nil | no_return()
Retrieve a user with the strategy provider name and uid.
This calls Pow.Ecto.UserIdentities.Context.get_user_by_provider_uid/3
or
get_user_by_provider_uid/2
on a custom context module.
Upserts user identity for the user, and strategy provider name and uid.
This calls Pow.Ecto.UserIdentities.Context.upsert/3
or
upsert/2
on a custom context module.