-
Notifications
You must be signed in to change notification settings - Fork 5
/
mix.exs
73 lines (67 loc) · 1.74 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
defmodule SimpleAuth.Mixfile do
use Mix.Project
def project do
[
app: :simple_auth,
version: "1.11.0",
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
name: "SimpleAuth",
source_url: "https://github.com/chazsconi/simple_auth",
docs: docs()
]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[
mod: {SimpleAuth, []},
extra_applications: [:logger],
# Default config
env: [
login_url: "/login",
post_login_path: "/",
post_logout_path: "/",
authenticate_api: SimpleAuth.Authenticate.Repo,
username_field: :email,
ldap_client: Exldap
]
]
end
defp deps do
[
{:phoenix, "~> 1.4.0 or ~> 1.5.0 or ~> 1.6.0"},
{:comeonin, "~> 3.0"},
{:exldap, "~> 0.4", optional: true},
{:ex_doc, ">= 0.0.0", only: :dev},
# Include poison so can run tests (if there were some) as Phoenix needs a JSON library to run
{:poison, ">= 0.0.0", only: :test}
]
end
defp description do
"""
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.
"""
end
defp package do
# These are the default files included in the package
[
name: :simple_auth,
maintainers: ["Charles Bernasconi"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/chazsconi/simple_auth"}
]
end
defp docs do
[
extras: ["README.md"],
main: "readme"
]
end
end