2017 © Pedro Peláez
 

library veritas

Identity and Access Control - Simplified, but not anemic

image

texdc/veritas

Identity and Access Control - Simplified, but not anemic

  • Wednesday, July 26, 2017
  • by texdc
  • Repository
  • 1 Watchers
  • 3 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Veritas

Identity and Access Control - simplified, but not anemic., (*1)

WIP: currently experimental only

Build Status Coverage Status, (*2)

Passwords and Validation

use texdc\veritas\identity\CryptoServiceInterface;
use texdc\veritas\identity\Password;

class User
{
    /**
     * @var Password
     */
    private $password;

    // ...

    public function changePassword(string $aPassword, CryptoServiceInterface $aCryptoService)
    {
        $this->setPassword(new Password($aCryptoService->encrypt($aPassword)));
        $this->eventService->publish(new PasswordChangedEvent($this->userId));
    }

    protected function setPassword(Password $aPassword)
    {
        if ($this->password == $aPassword) {
            throw new IdenticalPasswordException;
        }
        $this->password = $aPassword;
    }

    // ...
}

The Versions

26/07 2017

dev-master

9999999-dev

Identity and Access Control - Simplified, but not anemic

  Sources   Download

MIT

The Requires

  • php ~5.4 || ~7.0

 

The Development Requires

access identity ddd iam

31/03 2017

dev-develop

dev-develop

Identity and Access Control - Simplified, but not anemic

  Sources   Download

MIT

The Requires

  • php ~5.4 || ~7.0

 

The Development Requires

access identity ddd iam

18/08 2015

dev-refactor-password

dev-refactor-password

Identity and Access Control - Simplified, but not anemic

  Sources   Download

MIT

The Requires

  • php ~5.4 || ~7.0

 

The Development Requires

access identity ddd iam

15/06 2015

dev-feature/identified_trait

dev-feature/identified_trait

Identity and Access Control - Simplified, but not anemic

  Sources   Download

MIT

The Requires

  • php ~5.4

 

The Development Requires

access identity ddd iam