Skip to content
This repository has been archived by the owner on Oct 16, 2018. It is now read-only.

imranismail/sentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Hex version Hex downloads

Deprecated

Deprecated in favour of can

Sentry

Sentry provides a set of helpers and conventions that will guide you in leveraging Elixir modules to build a simple, robust authorization system.

Inspired by elabs/pundit

This code is still a proof of concept as it is. I am making sure that once it nears 1.0 I'll make sure things are in order and stabilized, for now setting up authorization with Plug is fairly easy, I'm thinking of ways to make it even easier by utilizing the private fields in phoenix conn struct.

Installation

Add sentry to your list of dependencies in mix.exs:

def deps do
  [{:sentry, "~> 0.3"}]
end

Development

$ mix deps.get
# (will watch files and re-run tests on any change)
$ mix test.watch

Gotchas

mix test.watch command leaves some erlang zombie processes, We kill them with ps -ef|grep erlang|awk '{print $2}'|xargs kill after some time, just be careful not to kill any other valid Erlang process!

TODOs

  • Generators

License

Sentry is open-sourced software licensed under the MIT license

About

Super simple authorization package for phoenix

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages