2017 © Pedro Peláez
 

library lib-security-generic

Generic security model of the Ride framework

image

ride/lib-security-generic

Generic security model of the Ride framework

  • Tuesday, October 11, 2016
  • by ride-user
  • Repository
  • 7 Watchers
  • 0 Stars
  • 467 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Ride: Generic Security Model

Generic security model for the security library of the PHP Ride framework., (*1)

This security model is file based and usefull for a small user base or as a backup for other security models., (*2)

What's In This Library

SecurityModelIO

The SecurityModelIO interface is used by the GenericSecurityModel as a data source., (*3)

An implementation is provided for the XML format by the XmlSecurityModelIO class., (*4)

GenericSecurityModel

The GenericSecurityModel class offers a generic implementation of the SecurityModel interface from the ride/lib-security module. This class also implements the GenericUser, GenericRole and GenericPermission classes., (*5)

Code Sample

Check this code sample to see how to initialize this library:, (*6)

use ride\library\encryption\hash\Hash;
use ride\library\event\EventManager;
use ride\library\security\model\generic\io\XmlSecurityModelIO;
use ride\library\security\model\generic\GenericSecurityModel;
use ride\library\system\System;

function createSGenericSecurityModel(System $system, EventManager $eventManager, Hash $hashAlgorithm) {
    $file = $system->getFileSystem()->getFile('/path/to/security.xml');
    $securityModelIO = new XmlSecurityModelIO($file);

    $securityModel = new GenericSecurityModel($securityModelIO, $eventManager, $hashAlgorithm);

    return $securityModel;
}

Implementations

You can check the related implementations of this library: - ride/cli-security - ride/lib-security - ride/lib-security-oauth - ride/web-security-generic, (*7)

Installation

You can use Composer to install this library., (*8)

composer require ride/lib-security-generic

The Versions

11/10 2016

dev-master

9999999-dev

Generic security model of the Ride framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

11/10 2016

dev-develop

dev-develop

Generic security model of the Ride framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

11/10 2016

1.0.0

1.0.0.0

Generic security model of the Ride framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

07/10 2015

0.5.0

0.5.0.0

Generic security model of the Ride framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

08/08 2014

0.4.0

0.4.0.0

Generic security model of the Ride framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

28/04 2014

0.3.0

0.3.0.0

Generic security model of the Ride framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

27/04 2014

0.2.0

0.2.0.0

Generic security model of the Ride framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

21/01 2014

0.1.1

0.1.1.0

Generic security model of the Pallo framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

29/11 2013

0.1.0

0.1.0.0

Generic security model of the Pallo framework

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd