plug_auth v1.0.0 PlugAuth.Access.Role

Implements role-based access control. Authentication must occur before access control.

## Example:

plug PlugAuth.Authentication.Basic, realm: "Secret world"
plug PlugAuth.Access.Role, roles: [:admin]

Summary

Functions

Callback implementation for c:Plug.call/2

Callback implementation for c:Plug.init/1

Functions

call(conn, opts)

Callback implementation for c:Plug.call/2.

init(opts)

Callback implementation for c:Plug.init/1.