AuthShield v0.0.1 AuthShield.Resources View Source

Resources can be used to definy many things but in authorization and authentication we use it as a form to declare something we need in order to deal with identities and access control.

We use an Role-based access control architecture as an approach to restricting system access to authorized users, so our resources contains users, roles and permissions.

This module provides an interaface that delegates to the specific resource functions.

Link to this section Summary

Functions

Link to this section Functions

Link to this function

change_permissions_role(role, permission)

View Source

See AuthShield.Resources.Roles.change_permissions/2.

Link to this function

change_permissions_role!(role, permission)

View Source

See AuthShield.Resources.Roles.change_permissions!/2.

Link to this function

change_roles_user(user, roles)

View Source

See AuthShield.Resources.Users.change_roles/2.

Link to this function

change_roles_user!(user, roles)

View Source

See AuthShield.Resources.Users.change_roles!/2.

Link to this function

change_status_user(user, status)

View Source

See AuthShield.Resources.Users.status/2.

Link to this function

change_status_user!(user, status)

View Source

See AuthShield.Resources.Users.status!/2.

Link to this function

create_permission(params)

View Source

See AuthShield.Resources.Permissions.insert/1.

Link to this function

create_permission!(params)

View Source

See AuthShield.Resources.Permissions.insert!/1.

See AuthShield.Resources.Roles.insert/1.

See AuthShield.Resources.Roles.insert!/1.

See AuthShield.Resources.Users.insert/1.

See AuthShield.Resources.Users.insert!/1.

Link to this function

delete_permission(permission)

View Source

See AuthShield.Resources.Permissions.delete/1.

Link to this function

delete_permission!(permission)

View Source

See AuthShield.Resources.Permissions.delete!/1.

See AuthShield.Resources.Roles.delete/1.

See AuthShield.Resources.Roles.delete!/1.

See AuthShield.Resources.Users.delete/1.

See AuthShield.Resources.Users.delete!/1.

Link to this function

get_permission_by(filters)

View Source

See AuthShield.Resources.Permissions.get_by/1.

Link to this function

get_permission_by!(filters)

View Source

See AuthShield.Resources.Permissions.get_by!/1.

See AuthShield.Resources.Roles.get_by/1.

See AuthShield.Resources.Roles.get_by!/1.

See AuthShield.Resources.Users.get_by/1.

See AuthShield.Resources.Users.get_by!/1.

Link to this function

list_permissions(params \\ [])

View Source

See AuthShield.Resources.Permissions.list/1.

Link to this function

list_roles(params \\ [])

View Source

See AuthShield.Resources.Roles.list/1.

Link to this function

list_users(params \\ [])

View Source

See AuthShield.Resources.Users.list/1.

Link to this function

preload_user(user, fields)

View Source

See AuthShield.Resources.Users.preload/2.

Link to this function

update_permission(permission, params)

View Source

See AuthShield.Resources.Permissions.update/2.

Link to this function

update_permission!(permission, params)

View Source

See AuthShield.Resources.Permissions.update!/2.

Link to this function

update_role(role, params)

View Source

See AuthShield.Resources.Roles.update/2.

Link to this function

update_role!(role, params)

View Source

See AuthShield.Resources.Roles.update!/2.

Link to this function

update_user(user, params)

View Source

See AuthShield.Resources.Users.update/2.

Link to this function

update_user!(user, params)

View Source

See AuthShield.Resources.Users.update!/2.