rampart v1.0.1 Rampart.Enforcer

The Enforcer module defines a plug which enforces that a request has been authorized. This should be used in your applications router in whatever pipeline you want verified.

The verification process simply checks for the existence of the authorized key. If no authorization has been performed, this plug will raise a Rampart.Exceptions.AuthorizationNotPerformed exception.

Summary

Functions

Callback implementation for Plug.call/2

Callback implementation for Plug.init/1

Types

opts()
opts() :: any

Functions

call(conn, opts)

Callback implementation for Plug.call/2.

init(opts)
init(opts) :: opts

Callback implementation for Plug.init/1.