michaelwa

michaelwa

I am very new to the Ash Framework. I did buy the book and I have gone up through the chapter on testing. I am very excite about the prospects, and it is time to start playing with it.

However, I am not sure what to do with Ash Authentication. I have some very strict compliance rules and I do not see a way to modify the “User” resource. There are some articles on customizing Ash Authentication but they mostly revolve around the Phoenix layer not concerned with modifying the base business logic that I believe should be embedded in the “User” resource. Below is a mostly representative sequence diagram of the “login” workflow.

Is there a guide that covers this topic I have not uncovered yet? Or is there something simple in the base documentation I am not understanding for making these kinds of changes?

Showing Posts 1 to 4

zachdaniel

zachdaniel

Creator of Ash

I wouldn’t be too attached to AshAuthentication. AshAuthentication is a way for us to provide pre-built variations of authentication easily. There is nothing wrong with using “regular” actions/resources and powering the flow yourself. You can very likely make modifications to the actions that underpin AshAuthentication, (i.e you should see actions in your user resource like sign_in_with_password and register_with_password that you are free to customize, thats why we generate them into your app), but at the end of the day if you’re worried about being able to rigidly prove that your app behaves to some specific requirement or specification, you may be better off not using AshAuthentication at all. Perhaps it just adds value while prototyping and later you replace it with your own tooling etc.

michaelwa

michaelwa OP

Thank you so much!

joevandyk

joevandyk

@zachdaniel would it be possible for an AshAuthentication generator to create some html, instead of a configuration file that has a bunch of different UI options?

zachdaniel

zachdaniel

Creator of Ash

That is an eventual goal (well, generate liveviews most likely, potentially inert views after). With that said, it’s mot very complex to define your own. The actions etc are all usable from anywhere like any standard action.

— All posts loaded —

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews