Ash Authentication User Identity config and other questions
Ash๐AshAuthentication
Hi! Question: lets say I have an existing populated resource in postgres that I want to act as my user_identity table. Can I use AshAuthentication.UserIdentity.Transformer on that resource and have it transform the resource to add the missing fields? Or am I required to supply all the attributes myself in the user_identity block for this case? I am getting "Error while running transformer AshAuthentication.UserIdentity.Transformer: "Expected
:domain
:domain
to equal
Foo.App
Foo.App
" even though I am passing the correct domain
My second question is: I have an auth signup flow I'd like to port to ash. The flow currently allows the user to input their signup info, then it sends an OTP by email for confirmation, and does not create the new user in the db until it receives the confirmation OTP the user inputs from the ui - in the meantime user signup info is stored in cache with TTL. Is this possible with ash auth lib? Or am I better off doing this outside of ash or using ash_auth puzzle peices myself in some custom actions (if so it would be great to be pointed in the direction of a reference)? I also have a forgot password flow which asks for email and then does actually use a token link confirmation before showing the new password creation inputs, hopefully this aligns more closely Thanks!
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.