Which contrib dependencies are needed to achieve, user registration, authentication, authorization and role based permission management

Well, here we go:

  • User registration: if you want to save them to a relational database, go with Ecto, which is the default database wrapper that comes with phoenix.
  • User authentication: for most of the times, I’ve implemented it myself, using only comeonin to hash the password. The last time, I’ve followed this tutorial to build a passwordless authentication mechanism, and I liked! About libs, the most used is guard I guess.
  • User registration: again, I’ve implemented it myself most times, I like to keep things simple. But if you want a lib for it, the most famous are bodyguard and canary.

You can give a look at the elixir awesome list here: https://github.com/h4cc/awesome-elixir

1 Like