rampart v1.0.1 Rampart.Authorize

The Authorize module defines the plug that handles the actual authorization of a request.

Configuration

On initialisation, the Authorize plug requires two options:

  • resource - The resource that is being authorized, either a module or a struct in most cases
  • action - The name of the action that is should be called on the policy.

Summary

Types

Opts for this plug is a simple keyword list

Functions

Initialises the authorization plug with the supplied options. Please see options for more information

Types

opts()
opts() :: keyword

Opts for this plug is a simple keyword list

Functions

call(conn, opts)
init(opts)
init(opts) :: opts

Initialises the authorization plug with the supplied options. Please see options for more information.