Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonathanstowe/object-permission-group
Object helper for Object::Permissions using unix groups
https://github.com/jonathanstowe/object-permission-group
authorization group object raku
Last synced: 25 days ago
JSON representation
Object helper for Object::Permissions using unix groups
- Host: GitHub
- URL: https://github.com/jonathanstowe/object-permission-group
- Owner: jonathanstowe
- License: artistic-2.0
- Created: 2015-10-29T00:08:38.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-08-07T08:48:04.000Z (over 2 years ago)
- Last Synced: 2023-04-22T17:06:59.877Z (over 1 year ago)
- Topics: authorization, group, object, raku
- Language: Raku
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# Object::Permission::Group
Object helper for [Object::Permission](https://github.com/jonathanstowe/Object-Permission) using unix groups.
![Build Status](https://github.com/jonathanstowe/Object-Permission-Group/workflows/CI/badge.svg)
## Synopsis
```raku
use Object::Permission::Group; # $*AUTH-USER is derived from $*USER# Or:
Use Object::Permission::Group;
# Set $*AUTH-USER to one for a specified user
$*AUTH-USER = Object::Permission::Group.new(user => 'wibble');
```## Description
This provides a simple implementation of
`Object::Permission::User` to be used with
[Object::Permission](https://github.com/jonathanstowe/Object-Permission)
which derives the permissions for the `$*AUTH-USER` from the users
unix group membership.By default `$*AUTH-USER` is initialised based on the value of
`$*USER` (i.e. the effective user,) but it can be set manually with
the permissions of an arbitrary user (as in the second example above.)## Installation
Assuming you have a working Rakudo installation you should be able to install this with *zef* :
# From the source directory
zef install .# Remote installation
zef install Object::Permission::Group
## Support
Suggestions/patches are welcomed via [github](https://github.com/jonathanstowe/Object-Permission-Group/issues)
## Licence
This is free software.
Please see the [LICENCE](LICENCE) file in the distribution
© Jonathan Stowe 2015 - 2021