2017 © Pedro Peláez
 

library tilmeld-server

Nymph user and group management with access controls.

image

sciactive/tilmeld-server

Nymph user and group management with access controls.

  • Monday, July 23, 2018
  • by hperrin
  • Repository
  • 3 Watchers
  • 1 Stars
  • 63 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 27 Versions
  • 43 % Grown

The README.md

Tilmeld

Nymph user and group management with access controls., (*1)

Deprecation Notice

The PHP implementation of Nymph/Tilmeld has been deprecated. It will no longer have any new features added. Instead, a new version of Nymph running on Node.js, written entirely in TypeScript will replace the PHP implementation. You can find it over at the Nymph.js repo., (*2)

Installation

Automatic Setup

The fastest way to start building a Nymph app is with the Nymph App Template., (*3)

Manual Installation

composer require sciactive/tilmeld-server

How It Works

Tilmeld uses Nymph entities to store users and groups. It allows users to register and log in using the Nymph REST endpoint., (*4)

Tilmeld methods are available on the Tilmeld\Tilmeld class. (They are all static methods.), (*5)

Users

User accounts can be created either in the setup app or by registering through the register function in PHP or the $register function in JS. There is a TilmeldLogin component in the tilmeld-components package that will build you a login/register form. The first user account registered in Tilmeld will be granted admin priveleges with the system/admin ability., (*6)

Users are available as the Tilmeld\Entities\User class., (*7)

Groups

Groups are available as the Tilmeld\Entities\Group class., (*8)

Primary Groups

Users can have only one primary group. It becomes the group of any entities they create. By default, Tilmeld will create a new primary group for every user., (*9)

Secondary Groups

Secondary groups are used to grant users additional abilities or give access to entities., (*10)

Access Controls

Tilmeld filters all calls to Nymph to allow users to only see and modify the entities they have access to. When a user creates an entity, their user becomes the user property of that entity, and their primary group becomes the group property. By default, entites will allow read/write/delete access to their user, read access to their group, and no access to other users., (*11)

You can use these constants for access control:, (*12)

  • Tilmeld::FULL_ACCESS - Read/Edit/Save/Change AC/Delete access.
  • Tilmeld::WRITE_ACCESS - Read/Edit/Save access.
  • Tilmeld::READ_ACCESS - Read access.
  • Tilmeld::NO_ACCESS - No access.

The following properties are used on entities to control who has access:, (*13)

  • $entity->user - The User who owns the entity.
  • $entity->group - The Group who owns the entity.
  • $entity->acUser - What access control level the owner user has. Defaults to Tilmeld::FULL_ACCESS.
  • $entity->acGroup - What access control level the owner group has. Defaults to Tilmeld::READ_ACCESS.
  • $entity->acOther - What access control level everyone else has. Defaults to Tilmeld::NO_ACCESS.
  • $entity->acRead - An array of users/groups who are granted Tilmeld::READ_ACCESS.
  • $entity->acWrite - An array of users/groups who are granted Tilmeld::WRITE_ACCESS.
  • $entity->acFull - An array of users/groups who are granted Tilmeld::FULL_ACCESS.

Abilities

Abilities can be granted to users and/or their groups. When you call gatekeeper, it will check for the given ability., (*14)

The system/admin ability is special, and will cause gatekeeper to always return true for users with this ability. It will also let the user see, modify, and delete all entities, as if they had Tilmeld::FULL_ACCESS., (*15)

The tilmeld/admin ability allows the user to see the setup app and modify all users/groups except ones with the system/admin ability. Changes to a user's email by a Tilmeld admin do not require verification. A Tilmeld admin can't grant system/admin to a user or group, but they can assign groups, so don't grant a group the system/admin ability., (*16)

Generated Primary Groups

Tilmeld, by default, is configured to generate a primary group for every new user. When the user is changed, that information is propagated to the group., (*17)

API Docs

See the full API docs at https://tilmeld.org/api/server/latest, (*18)

The Versions

23/07 2018

dev-master

9999999-dev http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

acl user management groups users user manager nymph group management group manager

23/07 2018

1.0.0-beta.25

1.0.0.0-beta25 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

acl user management groups users user manager nymph group management group manager

20/07 2018

1.0.0-beta.24

1.0.0.0-beta24 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

acl user management groups users user manager nymph group management group manager

11/06 2018

1.0.0-beta.23

1.0.0.0-beta23 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

acl user management groups users user manager nymph group management group manager

25/05 2018

1.0.0-beta.22

1.0.0.0-beta22 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

acl user management groups users user manager nymph group management group manager

15/05 2018

1.0.0-beta.21

1.0.0.0-beta21 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

acl user management groups users user manager nymph group management group manager

14/05 2018

1.0.0-beta.20

1.0.0.0-beta20 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

acl user management groups users user manager nymph group management group manager

07/05 2018

1.0.0-beta.18

1.0.0.0-beta18 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

acl user management groups users user manager nymph group management group manager

07/05 2018

1.0.0-beta.19

1.0.0.0-beta19 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

acl user management groups users user manager nymph group management group manager

04/05 2018

1.0.0-beta.17

1.0.0.0-beta17 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

acl user management groups users user manager nymph group management group manager

23/04 2018

1.0.0-beta.14

1.0.0.0-beta14 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

acl user management groups users user manager nymph group management group manager

23/04 2018

1.0.0-beta.15

1.0.0.0-beta15 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

acl user management groups users user manager nymph group management group manager

23/04 2018

1.0.0-beta.16

1.0.0.0-beta16 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

acl user management groups users user manager nymph group management group manager

17/01 2018

1.0.0-beta.13

1.0.0.0-beta13 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager

10/01 2018

1.0.0-beta.12

1.0.0.0-beta12 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager

14/12 2017

1.0.0-beta.10

1.0.0.0-beta10 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager

14/12 2017

1.0.0-beta.11

1.0.0.0-beta11 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager

21/11 2017

1.0.0-beta.8

1.0.0.0-beta8 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager

21/11 2017

1.0.0-beta.9

1.0.0.0-beta9 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager

17/11 2017

1.0.0-beta.6

1.0.0.0-beta6 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager

17/11 2017

1.0.0-beta.7

1.0.0.0-beta7 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager

16/11 2017

1.0.0-beta.4

1.0.0.0-beta4 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager

16/11 2017

1.0.0-beta.5

1.0.0.0-beta5 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager

14/11 2017

1.0.0-beta.2

1.0.0.0-beta2 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager

14/11 2017

1.0.0-beta.3

1.0.0.0-beta3 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager

13/11 2017

1.0.0-beta.1

1.0.0.0-beta1 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager

10/11 2017

1.0.0-alpha.2

1.0.0.0-alpha2 http://tilmeld.org/

Nymph user and group management with access controls.

  Sources   Download

Apache-2.0

The Requires

 

acl user management groups users user manager nymph group management group manager