New AshAuthentication Installers
The AshAuthentication igniter installers are released! Today on stream, we wrapped up the first (and hardest) strategy generator, for password auth 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
- 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
mix igniter.new your_app_name \
--install ash,ash_postgres,ash_authentication_phoenix \
--install ash_json_api,ash_graphql \
--auth-strategy password