Chapter 5Authenticating Users
We have something that is starting to look like an application. Our database-backed Accounts context is wired to our controller using changesets and forms. Let’s ramp up the sophistication with real login forms and sessions. Rather than use something off the shelf, we can build it ourselves. Along the way you’ll learn more about managing change with Ecto changesets and chaining together functions using plugs. Finally, we’ll introduce session handling so our application can track logged-in users.
As you’ve seen, Phoenix makes it easy to add functionality to your application from bottom to top. Authentication forms the foundation for your whole application’s security system, though, so we’re going to be sure each ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access