sheriff v0.3.0 API Reference

Modules

A simple minimal-dependency way to manage policy based authorization with laws

Handles the dispatch of requests for missing, unauthenticated and unauthorized requests in the pipeline with a simple setup of behaviours

A basic behaviour for laws

Not an actual Plug but a collection of Plug related helper functions

Enforces authorization laws for actors and resources

Load the requested resource and store it on the connection

A module to load a resource given its role and action

Exceptions

A module to handle a lack of permissions for a given request