diff --git a/lib/ash_authentication/igniter.ex b/lib/ash_authentication/igniter.ex index 9beefb6..f5eb600 100644 --- a/lib/ash_authentication/igniter.ex +++ b/lib/ash_authentication/igniter.ex @@ -2,7 +2,8 @@ defmodule AshAuthentication.Igniter do @moduledoc "Codemods for working with AshAuthentication" @doc "Adds a secret to a secret module that reads from application env" - @spec add_secret_from_env(Igniter.t(), module(), Ash.Resource.t(), list(atom), atom()) :: Igniter.t() + @spec add_secret_from_env(Igniter.t(), module(), Ash.Resource.t(), list(atom), atom()) :: + Igniter.t() def add_secret_from_env(igniter, module, resource, path, env_key) do otp_app = Igniter.Project.Application.app_name() diff --git a/lib/mix/tasks/ash_authentication.install.ex b/lib/mix/tasks/ash_authentication.install.ex index 5376f88..3790d7a 100644 --- a/lib/mix/tasks/ash_authentication.install.ex +++ b/lib/mix/tasks/ash_authentication.install.ex @@ -121,7 +121,7 @@ defmodule Mix.Tasks.AshAuthentication.Install do test_secret ) |> Igniter.Project.Config.configure_runtime_env( - igniter, + :prod, otp_app, [:token_signing_secret], runtime_secret diff --git a/mix.lock b/mix.lock index 663e1be..e7dd675 100644 --- a/mix.lock +++ b/mix.lock @@ -36,7 +36,7 @@ "glob_ex": {:hex, :glob_ex, "0.1.8", "f7ef872877ca2ae7a792ab1f9ff73d9c16bf46ecb028603a8a3c5283016adc07", [:mix], [], "hexpm", "9e39d01729419a60a937c9260a43981440c43aa4cadd1fa6672fecd58241c464"}, "ham": {:hex, :ham, "0.3.0", "7cd031b4a55fba219c11553e7b13ba73bd86eab4034518445eff1e038cb9a44d", [:mix], [], "hexpm", "7d6c6b73d7a6a83233876cc1b06a4d9b5de05562b228effda4532f9a49852bf6"}, "hpax": {:hex, :hpax, "1.0.0", "28dcf54509fe2152a3d040e4e3df5b265dcb6cb532029ecbacf4ce52caea3fd2", [:mix], [], "hexpm", "7f1314731d711e2ca5fdc7fd361296593fc2542570b3105595bb0bc6d0fad601"}, - "igniter": {:hex, :igniter, "0.3.25", "5dedd56fd500e37ef177551246498acb32c486660e0de02ff285c0399d5ca5bf", [:mix], [{:glob_ex, "~> 0.1.7", [hex: :glob_ex, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:rewrite, "~> 0.9", [hex: :rewrite, repo: "hexpm", optional: false]}, {:sourceror, "~> 1.4", [hex: :sourceror, repo: "hexpm", optional: false]}, {:spitfire, ">= 0.1.3 and < 1.0.0-0", [hex: :spitfire, repo: "hexpm", optional: false]}], "hexpm", "93150716c16b3345271d87ad6e97fc95bb430830cbee34fcbdde18bcafdb6fea"}, + "igniter": {:hex, :igniter, "0.3.25", "cce36fd49b499d215d0605ee3bfeb8fabe2f86b70b2df24ef3a50797409bceee", [:mix], [{:glob_ex, "~> 0.1.7", [hex: :glob_ex, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:rewrite, "~> 0.9", [hex: :rewrite, repo: "hexpm", optional: false]}, {:sourceror, "~> 1.4", [hex: :sourceror, repo: "hexpm", optional: false]}, {:spitfire, ">= 0.1.3 and < 1.0.0-0", [hex: :spitfire, repo: "hexpm", optional: false]}], "hexpm", "ffccb3c03cfdc8694be27a4c1d5615799ac140c27f32c74d1817171c4d411a62"}, "inflex": {:hex, :inflex, "2.1.0", "a365cf0821a9dacb65067abd95008ca1b0bb7dcdd85ae59965deef2aa062924c", [:mix], [], "hexpm", "14c17d05db4ee9b6d319b0bff1bdf22aa389a25398d1952c7a0b5f3d93162dd8"}, "iterex": {:hex, :iterex, "0.1.2", "58f9b9b9a22a55cbfc7b5234a9c9c63eaac26d276b3db80936c0e1c60355a5a6", [:mix], [], "hexpm", "2e103b8bcc81757a9af121f6dc0df312c9a17220f302b1193ef720460d03029d"}, "jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"},