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↑
call(conn, opts) | Callback implementation of |
init(opts) | Callback implementation of |
Functions
Callback implementation of Plug.call/2
.
Callback implementation of Plug.init/1
.