Sanjibukai

Sanjibukai

Summary of the authentication/authorization packages available for Phoenix

Hello everybody,

I’m learning Phoenix and so far, I didn’t had the need to have (and encountered any examples with) advanced authentication/authorization..

But I’m starting to look about what are the gems packages available in the Elixir/Phoenix world to replace some workflow I had in the Ruby/Rails world..

So, I heard about comeonin, ueberauth, guardian, pow, pow_assent, coherence..
Which ones are related to only authentication, only authorization, and both?
While I know that I can go and read what each is doing, I’m mostly looking for advice like which one are used by big teams or in big projects and that are somehow long-term solutions..

E.g. in the rails world, one can be pretty sure to go with devise and pundit for example..
By the way, devise was made from plataformatec, so I always thought that in this way, there will be some kind of default native authentication solution backed right into Phoenix… But it seems not..

Also do you think it’s bad to go with with a custom authentication and authorization handling, by only using comeonin (which will only handle password hashes if I’m not wrong) as it’s done e.g. in the book Programming Phoenix?

Thank you very much..

Most Liked

LostKobrakai

LostKobrakai

This is because they weren‘t happy with devise:

Afaik pow comes closest to a full feature auth library.

outlog

outlog

depends on what you need? what are you building? what are your requirements?

afaik pow is the current leader/most active - handles “everything” and have tutorials/guides, great docs etc. etc. - so would say that is the place to start (unless you have specific requirements).

personally I use guardian/guardian_db in my project - that was “the leader” 2 years back - and hey it works.

Where Next?

Popular in Questions Top

_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
Kurisu
For example for a current url like http://localhost:4000/cosmetic/products?_utf8=✓&query=perfume&page=2, I would like to get: ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
JulienCorb
I am trying to implement my new.html.eex file to create new posts on my website. new.html.eex: <h1>Create Post</h1> <%= ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New

Other popular topics Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 43487 311
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 52673 488
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement