Ash FrameworkAF
Ash Framework3y ago
129 replies
simpers

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?
Was this page helpful?