Authorization packages

So, I’m starting to evaluate the main Elixir authorization packages for use in Phoenix, and a quick query on hex reveals this list:

authorize - Rule based authorization for Elixir

bodyguard - Bodyguard is a simple, flexibile authorization library with a focus on Phoenix 1.3+ apps.

canada - A DSL for declarative permissions

canary - An authorization library to restrict what resources the current user is allowed to access, and load those resources for you.

policy_wonk - Plug based authorization and resource loading. Aimed at Phoenix, but depends only on Plug. MIT license Updated to compile clean with Elixir 1.4

As well as OvermindDL1’s
permission_ex - Permission management and checking library for Elixir.

Just curious what people’s experience here have been for ease of use and performance.

For my purposes, I’m mainly interested in relatively coarse-grained permissions.

…for some trivia of the day, here in Japan we refer to this as:

Authorization = 承認 (shonin)
Authentication = 認証 (ninsho)

12 Likes