We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Introduction to the Permit authorization library for Elixir Phoenix apps
399
clicks
Source: curiosum.com
Permit is a newly released authorization library specifically designed to integrate with Phoenix, LiveView, and Ecto in Elixir applications. It's distributed across three Hex packages: permit (the core application), permit_ecto (for conversion of rules to Ecto queries), and permit_phoenix (facilitates preloading and checking authorization in Phoenix actions). It allows for writing simple Elixir-style authorization rules and provides automatic conversion into Ecto queries, removing the need for manual Ecto scope definitions. The Permit library, inspired by CanCanCan in Ruby on Rails, aims to simplify the developer experience for Elixir pros by addressing the limitations found in other Elixir authorization libraries like Bodyguard, LetMe, Canada, and Canary. By also supporting Phoenix LiveView, Permit introduces a streamlined authorization management process for both developers and users. Future plans for Permit may involve adapting its core application and Permit.Ecto for other frameworks and integrating with GraphQL using Absinthe. The library's development is open for contributions from the community.
Related posts
© HashMerge 2024