Phoenix Framework. Authentication and Authorization Using Plugs (whatdidilearn.info) 18 points by ck3g 8y ago ↗ HN
[–] regulation_d 8y ago ↗ I know Addict was only mentioned in passing, but I am curious: is that becoming the goto authentication library for Elixir/Phoenix?In my work with Phoenix so far, I've taken the author's roll-your-own approach.It did take longer to setup than just including Devise in Rails, but I also understand exactly how it works so I think there is some benefit there.But for folks just getting started with Phoenix (esp. from Rails), I wonder if there should be a goto Devise-like option. [–] ck3g 8y ago ↗ To be honest I don't know yet =)But I also curious why where is no devise-like library, because both Elixir and Devise comes from Plataformatec [–] mikaak 8y ago ↗ I've always taken the roll-your-own approach too using https://github.com/bryanjos/joken, though I hear about https://github.com/ueberauth/ueberauth a lot.If you're using Absinthe you can create a easy middleware for auth as well.
[–] ck3g 8y ago ↗ To be honest I don't know yet =)But I also curious why where is no devise-like library, because both Elixir and Devise comes from Plataformatec
[–] mikaak 8y ago ↗ I've always taken the roll-your-own approach too using https://github.com/bryanjos/joken, though I hear about https://github.com/ueberauth/ueberauth a lot.If you're using Absinthe you can create a easy middleware for auth as well.
3 comments
[ 2.9 ms ] story [ 13.6 ms ] threadIn my work with Phoenix so far, I've taken the author's roll-your-own approach.
It did take longer to setup than just including Devise in Rails, but I also understand exactly how it works so I think there is some benefit there.
But for folks just getting started with Phoenix (esp. from Rails), I wonder if there should be a goto Devise-like option.
But I also curious why where is no devise-like library, because both Elixir and Devise comes from Plataformatec
If you're using Absinthe you can create a easy middleware for auth as well.