MyApp.Secrets must implement the 'AshAuthentication.Secret` behaviour.

I followed the example here (https://ash-hq.org/docs/guides/ash_authentication/latest/github-quickstart) but ran into this error. It talks about password_reset which I'm not sure where it's coming from.
** (EXIT from #PID<0.104.0>) an exception was raised:
** (Spark.Error.DslError) [nil]
password_reset:
`MyApp.Secrets` must implement the `AshAuthentication.Secret` behaviour.
lib/MyApp/accounts/resources/user.ex:1: anonymous fn/1 in MyApp.Accounts.User.__verify_ash_dsl__/1
(elixir 1.14.1) lib/enum.ex:975: Enum."-each/2-lists^foreach/1-0-"/2
lib/MyApp/accounts/resources/user.ex:1: MyApp.Accounts.User.__verify_ash_dsl__/1
(elixir 1.14.1) lib/enum.ex:975: Enum."-each/2-lists^foreach/1-0-"/2
(elixir 1.14.1) lib/module/parallel_checker.ex:239: Module.ParallelChecker.check_module/2
(elixir 1.14.1) lib/module/parallel_checker.ex:78: anonymous fn/5 in Module.ParallelChecker.spawn/3
** (EXIT from #PID<0.104.0>) an exception was raised:
** (Spark.Error.DslError) [nil]
password_reset:
`MyApp.Secrets` must implement the `AshAuthentication.Secret` behaviour.
lib/MyApp/accounts/resources/user.ex:1: anonymous fn/1 in MyApp.Accounts.User.__verify_ash_dsl__/1
(elixir 1.14.1) lib/enum.ex:975: Enum."-each/2-lists^foreach/1-0-"/2
lib/MyApp/accounts/resources/user.ex:1: MyApp.Accounts.User.__verify_ash_dsl__/1
(elixir 1.14.1) lib/enum.ex:975: Enum."-each/2-lists^foreach/1-0-"/2
(elixir 1.14.1) lib/module/parallel_checker.ex:239: Module.ParallelChecker.check_module/2
(elixir 1.14.1) lib/module/parallel_checker.ex:78: anonymous fn/5 in Module.ParallelChecker.spawn/3
Ash HQ
Guide: Github Quickstart
Read the "Github Quickstart" guide on Ash HQ
5 Replies
ZachDaniel
ZachDaniel2y ago
Does the module in question exist and have the call to use AshAuthentication.Secret?
Jason
JasonOP2y ago
Yes it does. Created it based on the doc page referenced above. Is password_reset something to be defined in that module? The example has no mention of it.
jart
jart2y ago
Can you paste the contents of your authentication DSL section in your user resource please?
Jason
JasonOP2y ago
Sorry, I had the module name wrong..
jart
jart2y ago
👍

Did you find this page helpful?