sheriff v0.1.0 API Reference

Modules

A simple, minimimal-dependency way to manage authentication and access to various resources in a given application

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

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

Test the policy against the current route, actor, and resource

Load the request’s target resource and store it on the connection for use downstream

A basic behaviour for policies

A module to load a resource given its role and action

Exceptions

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