Phoenix Framework. Authentication and Authorization Using Plugs

(whatdidilearn.info)

18 points | by ck3g 2223 days ago

1 comments

  • regulation_d 2223 days 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.

    • mikaak 2222 days 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 2223 days 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