Packages
ash_authentication_phoenix
2.4.2
3.0.0-rc.9
3.0.0-rc.8
3.0.0-rc.7
3.0.0-rc.6
3.0.0-rc.4
3.0.0-rc.3
3.0.0-rc.2
3.0.0-rc.1
3.0.0-rc.0
2.17.2
2.17.1
2.17.0
2.16.0
2.15.0
2.14.1
2.14.0
2.13.1
2.13.0
2.12.2
2.12.1
2.12.0
2.11.0
2.10.5
2.10.4
2.10.3
2.10.2
2.10.1
2.10.0
2.9.0
2.8.0
2.7.0
2.6.3
2.6.2
2.6.1
2.6.0
2.5.4
2.5.3
2.5.2
2.5.1
2.5.0
2.4.8
2.4.7
2.4.6
2.4.5
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.3.0
2.2.1
2.2.0
2.1.11
2.1.10
2.1.9
2.1.8
2.1.7
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
2.0.0-rc.2
2.0.0-rc.1
2.0.0-rc.0
1.9.4
1.9.3
1.9.2
1.9.1
1.9.0
1.8.7
1.8.6
1.8.5
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.3
1.7.2
1.7.1
1.7.0
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.1
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
Phoenix integration for Ash Authentication
Security advisory:
This version has known vulnerabilities.
View advisories
Current section
Files
Jump to
Current section
Files
ash_authentication_phoenix
mix.exs
mix.exs
defmodule AshAuthentication.Phoenix.MixProject do
@moduledoc false
use Mix.Project
@version "2.4.2"
def project do
[
app: :ash_authentication_phoenix,
version: @version,
description: "Phoenix integration for Ash Authentication",
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
preferred_cli_env: [ci: :test],
aliases: aliases(),
deps: deps(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [
plt_add_apps: [:mix, :ex_unit, :ash_authentication],
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
],
docs: [
main: "readme",
extras: [
"README.md",
{"documentation/tutorials/get-started.md", title: "Get Started"},
{"documentation/tutorials/liveview.md", title: "LiveView Routes"},
{"documentation/tutorials/ui-overrides.md", title: "UI Overrides"}
],
redirects: %{
"getting-started-with-ash-authentication-phoenix" => "get-started"
},
groups_for_extras: [
Tutorials: ~r'documentation/tutorials',
"How To": ~r'documentation/how_to',
Topics: ~r'documentation/topics',
DSLs: ~r'documentation/dsls'
],
formatters: ["html"],
before_closing_head_tag: fn type ->
if type == :html do
"""
<script>
if (location.hostname === "hexdocs.pm") {
var script = document.createElement("script");
script.src = "https://plausible.io/js/script.js";
script.setAttribute("defer", "defer")
script.setAttribute("data-domain", "ashhexdocs")
document.head.appendChild(script);
}
</script>
"""
end
end,
filter_modules: fn module, _ ->
String.match?(to_string(module), ~r/^Elixir.AshAuthentication.Phoenix/) ||
String.match?(to_string(module), ~r/^Elixir.Mix.Tasks/)
end,
source_url_pattern:
"https://github.com/team-alembic/ash_authentication_phoenix/blob/main/%{path}#L%{line}",
groups_for_modules: [
Welcome: [
AshAuthentication.Phoenix
],
"Routing and Controller": [
AshAuthentication.Phoenix.Controller,
AshAuthentication.Phoenix.Plug,
AshAuthentication.Phoenix.Router,
AshAuthentication.Phoenix.LiveSession
],
Customisation: [
~r/^AshAuthentication\.Phoenix\..+Live/,
~r/^AshAuthentication\.Phoenix\.Overrides/,
~r/^AshAuthentication\.Phoenix\.Components/
],
Utilities: [
AshAuthentication.Phoenix.Utils.Flash
]
]
]
]
end
def package do
[
maintainers: [
"James Harton <james.harton@alembic.com.au>",
"Zach Daniel <zach@zachdaniel.dev>"
],
licenses: ["MIT"],
links: %{
"Source" => "https://github.com/team-alembic/ash_authentication_phoenix"
},
source_url: "https://github.com/team-alembic/ash_authentication_phoenix",
files: ~w[lib .formatter.exs mix.exs README* LICENSE* CHANGELOG* documentation]
]
end
# Run "mix help compile.app" to learn about applications.
def application, do: application(Mix.env())
def application(:dev) do
[
extra_applications: [:logger],
mod: {Dev.Application, []}
]
end
def application(_),
do: [
extra_applications: [:logger]
]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ash_authentication, "~> 4.1"},
{:ash_phoenix, "~> 2.0"},
{:ash, "~> 3.0"},
{:jason, "~> 1.0"},
{:phoenix_html, "~> 4.0"},
{:phoenix_html_helpers, "~> 1.0"},
{:phoenix_live_view, "~> 1.0"},
{:phoenix_view, "~> 2.0"},
{:phoenix, "~> 1.6"},
{:bcrypt_elixir, "~> 3.0"},
{:slugify, "~> 1.3"},
{:igniter, "~> 0.3 and >= 0.3.62", optional: true},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.2", only: [:dev, :test], runtime: false},
{:doctor, "~> 0.18", only: [:dev, :test]},
{:ex_check, "~> 0.15", only: [:dev, :test]},
{:ex_doc, github: "elixir-lang/ex_doc", only: [:dev, :test], runtime: false},
{:faker, "~> 0.17", only: [:dev, :test]},
{:git_ops, "~> 2.4", only: [:dev, :test], runtime: false},
{:makeup_html, ">= 0.0.0", only: :dev, runtime: false},
{:mimic, "~> 1.7", only: [:dev, :test]},
{:mix_audit, "~> 2.1", only: [:dev, :test]},
{:plug_cowboy, "~> 2.5", only: [:dev, :test]},
{:sobelow, "~> 0.13", only: [:dev, :test]},
{:floki, ">= 0.30.0", only: :test}
]
end
defp aliases do
[
ci: [
"format --check-formatted",
"doctor --full --raise",
"credo",
"dialyzer",
"hex.audit",
"test"
],
credo: "credo --strict",
sobelow: "sobelow --skip",
docs: [
"compile",
fn _ -> AshAuthenticationPhoenix.Overrides.List.write_docs!() end,
"docs",
"spark.replace_doc_links"
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support", "dev"]
defp elixirc_paths(:dev), do: ["lib", "test/support", "dev"]
defp elixirc_paths(_), do: ["lib"]
end