View Source Janus
Flexible and composable authorization for resources defined by an Ecto.Schema
.
Janus provides an API for defining authorization policies that can be used both as filters in Ecto queries and to authorize actions on loaded resources with minimal to no duplication of authorization logic.
installation
Installation
Janus is pre-0.1 and can be installed by adding ex_janus
as a git dependency in mix.exs
:
defp deps do
[
{:ex_janus, github: "zachallaun/ex_janus"}
]
end
development
Development
To set up and test Janus
locally:
$ git clone https://github.com/zachallaun/ex_janus && cd ex_janus
$ mix deps.get
# Set up test database and run tests with code coverage report
$ mix setup
$ mix t