Aeacus.Authenticator
Safely and easily authenticate identity/passwords from any schema
Summary↑
authenticate(arg1, configuration \\ %{}) | Authenticates a resource based on the map keys: :identity, :password. Optionally, all configuration may be passed on the fly to support authenticating different resources |
authenticate_resource(resource, arg2, configuration \\ %{}) | Same as authenticate/1, except a pre-loaded resource is used |
Functions
Specs:
Authenticates a resource based on the map keys: :identity, :password. Optionally, all configuration may be passed on the fly to support authenticating different resources.
ex.)
Aeacus.Authenticator.authenticate %{identity: "test@example.com",
password: "1234"}
Specs:
Same as authenticate/1, except a pre-loaded resource is used
ex.)
Aeacus.Authenticator.authenticate %{identity: "test@example.com",
password: "1234"}