AF
Ash Framework
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
JoinAF
Ash Framework
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
JoinForm Module is not available
nedFunctionError) function Form.for_action/3 is undefined (module Form is not available)
nedFunctionError) function Form.for_action/3 is undefined (module Form is not available)
type "citext" does not exist
During the "Integrating Ash Authentication and Phoenix" tutorial I get this migration:
```elixir
create table(:users, primary_key: false) do
add :id, :uuid, null: false, primary_key: true...
Error loading aggregate when resource has a relates_to_actor_via policy
Hi Folks, I have encountered an issue when trying to load a count aggregate. The conditions to reproduce seem to be:
- DataLayer is Postgres
- Resource has a relates_to_actor_via policy on read
- The relates_to_actor_via path includes a has_many relationship...
redirect screen while trying to sign-in with wrong email or password
Why does this screen comes up instead of displaying an error message that the credentials are not right.

Maintaining the current logged in user.
How do we maintain the current user, like in liveviews we fetch it from the session.
implementing custom register form
I was looking into the register_form.ex and found a key @strategy. What is it used for?
Autogenerated unique short IDs
What is the best way in Ash to generate short IDs e.g. invite codes that are unique and will keep generating till it gets a unique one? Actions?
Create Resource without relation
Hey guys, I'm dipping my toes into Ash and try to build a small thing, but now I'm stuck. I created a resource and a relationship. I want to create the resource, but the relationship can be empty. But when I try to create the resource, I get this error:
```shell
iex(5)> Inventizr.Inventory.Item |> Ash.Changeset.for_create(:new, %{model: "MacBook", brand: "Apple"}) |> Inventizr.Inventory.create!()
[debug] QUERY OK db=2.3ms idle=1636.8ms...
Update Route W/ Arguments
I have a read action (and JSON API route) that takes an alternative identifer
:extid
instead of looking for the :id
column. Now I would like the same route as an alternative for updates, too.
The update
understands the argument
like the read
does, but I don’t see how I can modifiy the query to read the correct record.
A change
can have an optional where
which takes a list of functions, but I don’t get what these functions should look like…...Link directly to "Register" page
Does the AshAuthentication.Phoenix router provide a link to open directly the "Register" part of the "/sign-in" route? All I could do is open the "sign in", and then click on "Need an account?" link, which doesn't change the URL in the navbar.
Display "Wrong credentials" on SignInLive
Hi,
I have tried to tweak the AuthController to redirect to the SignIn with an error message in case of failure.
The flash isn't available on the single liveview component, is there a built-in "Wrong credentials" message on SignInLive?
This made me consider that maybe the normal use isn't to open directly the "/sign-in" route to liveview, but to embed it in a page with a layout?
Cheers...
Issues using AshAuthentication's sign_in_with_password action with AshGraphql
```elixir
defmodule Coruscant.Accounts.User do
use Ash.Resource,
data_layer: AshPostgres.DataLayer,
extensions: [AshAuthentication, AshGraphql.Resource]...
Conditions in expr (calculations)
I have a
calculation
(taken from the getting started guide):
```
calculations do
calculate :percent_open, :float, expr(open_tickets / total_tickets)...FeriendatenWeb.AuthController.init/1 is undefined
https://github.com/team-alembic/ash_authentication_phoenix says "This is beta software. Please don't use it without talking to us!". I did use it without talking to you and here we are. 😉
I followed the installation manual for a Phoenix application. When I try to start the server with
mix phx.server
I'll get the error message FeriendatenWeb.AuthController.init/1 is undefined (module FeriendatenWeb.AuthController is not available or is yet to be defined)``
I've never created an
AuthController` because the installation manual didn't say so. Is there a step by step tutorial how to start with a vanilla Phoenix application?...Does AshAdmin support pagination?
I want to use AshAdmin. The tables I use contain a couple of 10,000 entries. Too many for a single page. I haven't seen pagination yet. Is it already implemented or is there some config switch which limits the queries?
AshAdmin.PageLive is not available
I want to use the AshAdmin within a basic Phoenix 1.7rc2 application. I followed the steps on https://github.com/ash-project/ash_admin but when I start the server with
mix phx.server
and visit http://localhost:4000/admin
with my browser I get the error message function FeriendatenWeb.AshAdmin.PageLive.__live__/0 is undefined (module FeriendatenWeb.AshAdmin.PageLive is not available)
. How can I debug/fix this?Couldn't recognise the signer algorithm
```elixir
Couldn't recognize the signer algorithm.
Possible values are:
["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512", "Ed25519", "Ed25519ph", "Ed448", "Ed448ph"]...
Ash Authentication in Phoenix Liveviews
I am trying to implement the authentication in liveviews. can anyone provide me a helpful link?