Gardien v1.0.0 API Reference

Modules

Simple authorization functions that rely on Gardien.Policy protocol for verifying whether user is allowed to perform some action on a given resource. (see Gardien.Policy for more information on policy implementation details)

Authorization plug

Gardien.Authorize can be use-d in order to implement a more descriptive Gardien.Policy

Controller authorization functions

View authorization functions

Exceptions

Error raised when Gardien.Authorization plug was not initialized properly

Error raised when user is not authorized to perform action

Error raised when gardien was not configured properly

Protocols

Protocol used by Gardien authorization functions