Giter VIP home page Giter VIP logo

laminas-acl-postgresql's Introduction

Latest Stable Version Total Downloads Monthly Downloads

Install

composer require geo6/laminas-acl-postgresql

Database structure

See INSTALL.md

For the purposes of this documentation:

  • a resource is an object to which access is controlled.
  • a role is an object that may request access to a resource.

Put simply, roles request access to resources. For example, if a parking attendant requests access to a car, then the parking attendant is the requesting role, and the car is the resource, since access to the car may not be granted to everyone.

--- https://docs.laminas.dev/laminas-permissions-acl/usage/

Table resource

Column name Column description
id int Identifier (AUTONUM)
name Name of the resource
url URL of the resource
locked bool Allows to deny access to the resource for everyone
public bool Allows to set the resource accessible to everyone - even without login

Table role

Column name Column description
id int Identifier (AUTONUM)
name Name of the role
priority int Priority of the resource - Rules will be applied following the priority

A "special" role is created by default : admin ! This role will have automatically access to every new resource created.

Table user

Column name Column description
id int Identifier (AUTONUM)
login Login of the user (= username)
password Encrypted password of the user
email Email address of the user
fullname Full name of the user
home int Identifier resource used to be the homepage of the user. The user will be automatically redirected to his/her homepage once logged in.
locked bool Allows to deny access to everything for this user. The user won't be able to log in.

Table role_resource

Grant access for a role to a resource.

Table user_role

Assign a user to a role.

laminas-acl-postgresql's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar jbelien avatar

Watchers

 avatar

laminas-acl-postgresql's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.