dewet
dewet
AEAsh Elixir
Created by dewet on 9/26/2023 in #support
Auth0 "Authentication Error" without any helpful details
I followed the instructions for Ash Authentication Phoenix and got password auth working with some help. Then I tried to switch to Auth0 using this quickstart: https://ash-hq.org/docs/guides/ash_authentication/latest/tutorials/auth0-quickstart Here are the changes I ended up with https://github.com/dewetblomerus/red/pull/2/files Now, when I click the "Sign In" button and go to /sign-in I see a nice "Sign in with Auth0" button. When I click it, I go to /auth/user/auth0 which renders a blank page with the words: "Authentication Error". Server logs:
[info] GET /auth/user/auth0
[debug] Processing with RedWeb.AuthController
Parameters: %{}
Pipelines: [:browser]
[info] Sent 401 in 13ms
[info] GET /auth/user/auth0
[debug] Processing with RedWeb.AuthController
Parameters: %{}
Pipelines: [:browser]
[info] Sent 401 in 13ms
My versions of things:
ash, "2.14.20"
ash_authentication, "3.11.15"
ash_authentication_phoenix, "1.8.3"
ash, "2.14.20"
ash_authentication, "3.11.15"
ash_authentication_phoenix, "1.8.3"
20 replies
AEAsh Elixir
Created by dewet on 9/23/2023 in #support
AshAuthenticationPhoenix Reset Password errors after following the guide
After following the AshAuthenticationPhoenix guide. Everything works except following the reset password link, which raises an error. I followed this guide https://ash-hq.org/docs/guides/ash_authentication_phoenix/latest/tutorials/getting-started-with-ash-authentication-phoenix Ended up with this code https://github.com/dewetblomerus/red (This is the relevant commit: https://github.com/dewetblomerus/red/commit/3600d53a565c55dbe3f6dedba6e07138335dfab7) I use http://localhost:4000/dev/mailbox to get the reset password link Here is the error: protocol Enumerable not implemented for %AshAuthentication.Strategy.Password.Resettable{ The stack trace:
18 replies