simpers
AEAsh Elixir
•Created by simpers on 6/28/2023 in #support
AshAuthentication error when trying to use password hashing change in seed action
I'm trying to use this action to seed some test accounts:
This action has no
:password_confirmation
field as it is just a seed action. However, if I do not include that and the password validation, I get this error:
If I add
to the seed action, the error instead becomes:
3 replies
AEAsh Elixir
•Created by simpers on 6/2/2023 in #support
Authentication.Plug - What to do as an API? I use Phoenix, but not with views. What is provided?
As I'm exploring and trying to setup
AshAuthentication
I ended up using use AshAuthentication.Plug
for a plug, thinking this would provide the same set of routes as the Phoenix view version would, but it doesn't seem like it. I'm not even sure, as the docs aren't clear on this and I'm at this point digging in the code itself.
Do I have to implement my own plug and controller(s) for this? I have an Angular frontend, and will maybe consume the same API from native apps later on.
And also, does this mean that some features aren't available unless I use Phoenix?130 replies