2017 © Pedro Peláez
 

library authentication-manager

Generic authentication management of identities

image

chippyash/authentication-manager

Generic authentication management of identities

  • Wednesday, February 7, 2018
  • by chippyash
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

chippyash/authentication-manager

Quality Assurance

PHP 5.5 PHP 5.6 PHP 7 Build Status Test Coverage Code Climate, (*1)

End of life notice

In March 2018, developer support will be withdrawn from this library for PHP <5.6. Older versions of PHP are now in such little use that the added effort of maintaining compatibility is not effort effective. See PHP Version Stats for the numbers., (*2)

What?

Provides base for creating managers that manage identity entries in some back end authentication system., (*3)

The single one provided at present is an HTTP Basic Digest Manager., (*4)

The library is released under the GNU GPL V3 or later license, (*5)

When?

If you want more, either suggest it, or better still, fork it and provide a pull request., (*6)

How?

You can find the API documentation here, (*7)

You will find the Test Contract in the docs directory alongside an example Symfony DI container definition., (*8)

Coding Basics

Construction

, (*9)

    use Chippyash\Authentication\Manager\DigestManager;
    use Chippyash\Authentication\Manager\Encoder\BasicEncoder;
    use Chippyash\Authentication\Manager\Digest\BasicDigestCollection;
    use Chippyash\Type\String\StringType;

$realm = new StringType('realm');
$digestFileName = new StringType('/path/to/my/file');

$encoder = new BasicEncoder();
$encoder->setRealm($realm);

$collection = new BasicDigestCollection($encoder, $digestFileName);
$collection->setRealm($realm);

$this->authManager = new DigestManager($collection);

, (*10)

Adding new manager types

Implement the Chippyash\Authentication\Manager\ManagerInterface to create new types of Authentication Managers., (*11)

Changing the library

  1. fork it
  2. write the test
  3. amend it
  4. do a pull request

Found a bug you can't figure out?, (*12)

  1. fork it
  2. write the test
  3. do a pull request

NB. Make sure you rebase to HEAD before your pull request, (*13)

Where?

The library is hosted at Github. It is available at Packagist.org, (*14)

Installation

Install Composer, (*15)

For production

    "chippyash/authentication-manager": "~2.0"

to your composer.json "requires" section, (*16)

For development

Clone this repo, and then run Composer in local repo root to pull in dependencies, (*17)

    git clone git@github.com:chippyash/Authentication-Manager.git AuthMan
    cd AuthMan
    composer install

To run the tests:, (*18)

    cd AuthMan
    vendor/bin/phpunit -c test/phpunit.xml test/

If you have Testdox Converter installed you can rebuild the Test Contract by running build.sh on *nix systems., (*19)

Other stuff

Check out ZF4 Packages for more packages, (*20)

License

This software library is released under the GNU GPL V3 or later license, (*21)

This software library is Copyright (c) 2014-2016, Ashley Kitson, UK, (*22)

A commercial license is available for this software library, please contact the author. It is normally free to deserving causes, but gets you around the limitation of the GPL license, which does not allow unrestricted inclusion of this code in commercial works., (*23)

History

V0... pre releases, (*24)

V1.0.0 Initial version tagged, (*25)

V1.0.1 Amends for CI, (*26)

V1.0.2 Typos in dic example, (*27)

V1.0.3 Self initialise the manager, (*28)

V2.0.0 BC Break: change namespace from chippyash\Authentication to Chippyash\Authentication, (*29)

V2.0.1 Add link to packages, (*30)

V2.0.2 Verify PHP7 compatibility, (*31)

V2.0.3 Move coverage to codeclimate, (*32)

V2.0.4 Update travis build script, (*33)

V2.0.5 update composer - forced by packagist composer.json format change, (*34)

The Versions

07/02 2018

dev-master

9999999-dev http://zf4.biz/packages?utm_source=packagist&utm_medium=web&utm_campaign=blinks&utm_content=authmanager

Generic authentication management of identities

  Sources   Download

GPL 3.0 GPL-3.0-or-later

The Requires

 

The Development Requires

authentication management digest

07/02 2018

2.0.5

2.0.5.0 http://zf4.biz/packages?utm_source=packagist&utm_medium=web&utm_campaign=blinks&utm_content=authmanager

Generic authentication management of identities

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

authentication management digest

04/01 2018

2.0.4

2.0.4.0 http://zf4.biz/packages?utm_source=packagist&utm_medium=web&utm_campaign=blinks&utm_content=authmanager

Generic authentication management of identities

  Sources   Download

GPL 3.0

The Requires

 

The Development Requires

authentication management digest

08/06 2016

2.0.3

2.0.3.0 http://zf4.biz/packages?utm_source=packagist&utm_medium=web&utm_campaign=blinks&utm_content=authmanager

Generic authentication management of identities

  Sources   Download

GPL 3.0

The Requires

 

The Development Requires

authentication management digest

22/03 2016

2.0.1

2.0.1.0 http://zf4.biz/packages?utm_source=packagist&utm_medium=web&utm_campaign=blinks&utm_content=authmanager

Generic authentication management of identities

  Sources   Download

GPL 3.0

The Requires

 

The Development Requires

authentication management digest

03/03 2016

2.0.0

2.0.0.0 http://the-matrix.github.io/

Generic authentication management of identities

  Sources   Download

GPL 3.0

The Requires

 

The Development Requires

authentication management digest

20/12 2014

1.0.3

1.0.3.0 http://the-matrix.github.io/

Generic authentication management of identities

  Sources   Download

GPL 3.0

The Requires

 

The Development Requires

authentication management digest

20/12 2014

1.0.2

1.0.2.0 http://the-matrix.github.io/

Generic authentication management of identities

  Sources   Download

GPL 3.0

The Requires

 

The Development Requires

authentication management digest

20/12 2014

1.0.1

1.0.1.0 http://the-matrix.github.io/

Generic authentication management of identities

  Sources   Download

GPL 3.0

The Requires

 

The Development Requires

authentication management digest

20/12 2014

1.0.0

1.0.0.0 http://the-matrix.github.io/

Generic authentication management of identities

  Sources   Download

GPL 3.0

The Requires

 

The Development Requires

authentication management digest