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 for |
init(opts) | Callback implementation for |
Functions
Callback implementation for c:Plug.call/2
.
Callback implementation for c:Plug.init/1
.