TechnoMage
TechnoMage
AEAsh Elixir
Created by TechnoMage on 6/20/2023 in #support
Authentication failures
Reason is nil, but I think it is in my session code.
5 replies
AEAsh Elixir
Created by TechnoMage on 5/24/2023 in #support
Setting Actor from Ash.Authentication
thanks
8 replies
AEAsh Elixir
Created by samoorai on 5/21/2023 in #support
Custom Auth
I am using a session store that allows updates from liveview FYI. phoenix_livesession. That works, but session updates made from the live view are stored in ETS which has some downsides. It also does pub/sub of session contents which is cool. I will probablly rework it to use regular controller at some point as Ash does.
25 replies
AEAsh Elixir
Created by TechnoMage on 5/23/2023 in #support
Bulk Delete/Truncate
THanks, I ended up doing 1, but will revise when you have it directly supported.
3 replies
AEAsh Elixir
Created by TechnoMage on 5/21/2023 in #support
Custom validation example
Thanks so much. That worked.
15 replies
AEAsh Elixir
Created by TechnoMage on 5/21/2023 in #support
Custom validation example
The example you provided above produces a new changeset. I just want the validation to produce an error in the form.
15 replies
AEAsh Elixir
Created by TechnoMage on 5/21/2023 in #support
Custom validation example
@Zach Daniel Given the above how do I return the modified changeset from the validate function? {:error, changeset} throws an error because it does not have a path. The docs indicate {:error, Ash.error()} which does not appear to accept a changeset?
15 replies
AEAsh Elixir
Created by TechnoMage on 5/21/2023 in #support
Custom validation example
Thanks
15 replies
AEAsh Elixir
Created by TechnoMage on 5/19/2023 in #support
Authentication crashing
Thanks for the help.
25 replies
AEAsh Elixir
Created by TechnoMage on 5/19/2023 in #support
Authentication crashing
I ended up removing my use of "user" as a session value since that is really not good security practice. Recovering from that now.
25 replies
AEAsh Elixir
Created by TechnoMage on 5/19/2023 in #support
Authentication crashing
Looks like it is just the live_session so I may just not use that and do the auth checks in each live view.
25 replies
AEAsh Elixir
Created by TechnoMage on 5/19/2023 in #support
Authentication crashing
Or, it is just using "user" and not documenting the session keys that it reserves. I will see what I can do to rework things, but that is pretty pervasive in my code.
25 replies
AEAsh Elixir
Created by TechnoMage on 5/19/2023 in #support
Authentication crashing
@Zach Daniel From the code above it looks like AshAuthenticaiton is assuming the only thing in a sessoin is subjects? That is not a valid assumption. In my case "user" holds a user resource instance. Probably a bad practice, but what the code currently does. so the first line of the with will return the "user" resource type and it is then trying to pass that to the subject_to_user. But the session value is "current_user" so not sure why "user" is also passing the first line other than it is just a case never tested.
25 replies
AEAsh Elixir
Created by TechnoMage on 5/19/2023 in #support
Authentication crashing
But, it never reaches the on_mount method before the error is thrown.
25 replies
AEAsh Elixir
Created by TechnoMage on 5/19/2023 in #support
Authentication crashing
25 replies
AEAsh Elixir
Created by TechnoMage on 5/19/2023 in #support
Authentication crashing
ash_authentication_live_session :authentication_required, # on_mount: {TacitRedOTPWeb.LiveUserAuth, :live_user_required} do scope "/admin" do live "/", AdminLive
25 replies
AEAsh Elixir
Created by TechnoMage on 5/19/2023 in #support
Authentication crashing
When I comment out the authentication live session like so it works
25 replies
AEAsh Elixir
Created by TechnoMage on 5/18/2023 in #support
Authentication debug help
I have it working now. Closing.
8 replies
AEAsh Elixir
Created by TechnoMage on 5/18/2023 in #support
Authentication debug help
It looks like it is working. The email I was using was not entered in the user resource.
8 replies
AEAsh Elixir
Created by TechnoMage on 5/18/2023 in #support
Authentication debug help
The console shows this, so it looks like google sent a token but something else stopped it from suceeding
8 replies