AshAuthentication Igniter Installers

:rotating_light: New AshAuthentication Installers :rotating_light:

The AshAuthentication igniter installers are released! Today on stream, we wrapped up the first (and hardest) strategy generator, for password auth :fire: The DX difference here is wild. Still more to go for the other strategies, but Ash Framework is getting better every day!

mix igniter.install ash_authentication_phoenix \
  --auth-strategy password

We have the following auth strategies available.
Only password can be installed automatically.
The rest must still be set up manually

  • Password
  • GitHub
  • Google
  • Magic Link (sign in only, register coming soon)
  • Auth0
  • OpenID
  • OAuth2 (generic)

See the docs for more: Get started with Ash Authentication — ash_authentication v4.2.0

When more strategy generators are available, you will be able to use multiple at once.

mix igniter.install ash_authentication_phoenix \
  --auth-strategy password \
  --auth-strategy magic_link

Or add strategies later!

mix ash_authentication.add_strategy password

Don’t have an app yet?
Get one ready-to-go with PostgreSQL, GraphQL, JSON:API and authentication with one terminal command!

You’ll need the igniter archive set up locally

mix archive.install hex igniter_new

Then you’re off to the races. Okay, two commands if you don’t have the archive installed yet :joy:

mix igniter.new your_app_name \
  --install ash,ash_postgres,ash_authentication_phoenix \
  --install ash_json_api,ash_graphql \
  --auth-strategy password
25 Likes

Latest AshAuthentication now supports registration with magic link, and has an installer for it out of the box! We’re barely scratching the surface of where these tools will take us, but this is the mythical DX that I’ve been telling everyone about for so long :heart_eyes:

7 Likes

Thanks for the incredible work. Very excited about Ash!

1 Like

I tried this today and installation was smooth. However, it seems to conflict with the password strategy for it throws an exception of hash_password is required. Has anyone else encountered this issue and solved it?