Ash FrameworkAF
Ash Framework3y ago
19 replies
dewet

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


My versions of things:
ash, "2.14.20"
ash_authentication, "3.11.15"
ash_authentication_phoenix, "1.8.3"
Ash HQ
Read the "Auth0 Quickstart" guide on Ash HQ
Guide: Auth0 Quickstart
Was this page helpful?