@ezimuel ezimuel released this Sep 28, 2018 · 0 commits to master since this release

Assets 2

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #37 handles null values when verifying password in PdoDatabase

@ezimuel ezimuel released this Aug 27, 2018 · 5 commits to master since this release

Assets 2

Added

  • Nothing.

Changed

  • #27 Zend\Expressive\Authentication\UserInterface::getRoles() returns an iterable instead of array.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

@weierophinney weierophinney released this May 23, 2018 · 15 commits to master since this release

Assets 2

Added

  • #28 adds the final class DefaultUser, which provides an immutable version of UserInterface
    that can be used in most situations.

  • #28 adds the service factory DefaultUserFactory, which returns a PHP callable
    capable of producing a DefaultUser instance from the provided $identity,
    $roles, and $details arguments.

Changed

  • #28 updates the PdoDatabase user repository to accept an additional
    configuration item, sql_get_details. This value should be a SQL statement
    that may be used to retrieve additional user details to provide in the
    UserInterface instance returned by the repository on successful
    authentication.

  • #28 updates UserRepositoryInterface to remove the method getRolesFromUser();
    this method is not needed, as UserInterface already provides access to user roles.

  • #28 modifies each of the Htpasswd and PdoDatabase user repository
    implementations to accept a new constructor argument, a callable
    $userFactory. This factory should implement the following signature:

    function (string $identity, array $roles = [], array $details = []) : UserInterface

    This factory will be called by the repository in order to produce a
    UserInterface instance on successful authentication. You may provide the
    factory via the service Zend\Expressive\Authentication\UserInterface if you
    wish to use one other than the one returned by the provided
    DefaultUserFactory class.

  • #28 modifies UserInterface as follows:

    • Renames getUserRoles() to getRoles()
    • Adds getDetail(string $name, mixed $default)
    • Adds getDetails() : array

Deprecated

  • Nothing.

Removed

  • #28 removes UserTrait in favor of the DefaultUser implementation.

Fixed

  • Nothing.

@weierophinney weierophinney released this Mar 15, 2018 · 30 commits to master since this release

Assets 2

Added

  • #15 adds support for PSR-15.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • #15 and #3 remove support for http-interop/http-middleware and http-interop/http-server-middleware.

  • #19 removes Zend\Expressive\Authentication\ResponsePrototypeTrait; the approach was flawed, and the various adapters will be updated to compose response factories instead of instances.

Fixed

@weierophinney weierophinney released this Mar 12, 2018 · 78 commits to master since this release

Assets 2

Added

  • Nothing.

Changed

  • #22 updates the ResponsePrototypeTrait to allow callable ResponseInterface services (instead of those directly returning a ResponseInterface).

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.

@weierophinney weierophinney released this Feb 27, 2018 · 37 commits to master since this release

Assets 2

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • #19 removes Zend\Expressive\Authentication\ResponsePrototypeTrait; the approach was flawed, and the various adapters will be updated to compose response factories instead of instances.

Fixed

  • Nothing.

@xtreamwayz xtreamwayz released this Feb 24, 2018 · 47 commits to master since this release

Assets 2

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

@xtreamwayz xtreamwayz released this Feb 22, 2018 · 52 commits to master since this release

Assets 2

Added

  • Nothing.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #17 adds the missing config provider component-installer config.

@weierophinney weierophinney released this Feb 7, 2018 · 59 commits to master since this release

Assets 2

Added

  • #15 adds support for PSR-15.

Changed

  • Nothing.

Deprecated

  • Nothing.

Removed

  • #15 and #3 remove support for http-interop/http-middleware and http-interop/http-server-middleware.

Fixed

  • Nothing.

@weierophinney weierophinney released this Jan 24, 2018 · 81 commits to master since this release

Assets 2

Added

  • Nothing.

Changed

  • #14 renames the method UserInterface::getUsername() to UserInterface::getIdentity().

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • #13 fixes an issue whereby fetching a record by an unknown username resulted in a "Trying to get property of non-object" error when using the PdoDatabase user repository implementation.