Packages

Adds authentication and authorization to a Phoenix project. A user can login with a username and password held in the DB or against an LDAP server.

Current section

Files

Jump to
simple_auth lib authenticate.ex
Raw

lib/authenticate.ex

defmodule SimpleAuth.AuthenticateAPI do
@moduledoc "API for authentication"
@doc "Checks login details. Returns {:ok, user} or :error. Can also return :blocked if user is blocked"
@callback login(user :: term, password :: term) :: term
end