2017 © Pedro Peláez
 

library authentication

image

germania-kg/authentication

  • Wednesday, September 6, 2017
  • by germania-kg
  • Repository
  • 2 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Germania KG · Authentication

This package was destilled from legacy code!
You better do not want it to use this in production. Tests, (*1)

Installation

$ composer require germania-kg/authentication

Overview

AuthUserInterface

namespace Germania\Authentication;

// Setter and Getter for User ID.
public function getId();
public function setId( $id );

AuthUserMiddleware

Constructor accepts:, (*2)

  • AuthUserInterface instance
  • Aura\Session\SegmentInterface instance.
  • User ID session field name
  • Optional: PSR-3 Logger

Middleware does:, (*3)

  • Stores the user with a user attribute in the Psr\Http\Message\ServerRequestInterface request object. It will be available within the $next middleware.
  • After running $next middleware, stores the User ID with the SegmentInterface instance, if the user attribute still is AuthUserInterface instance.

LoginController

TBD., (*4)

LogoutController

TBD., (*5)


Development

$ git clone git@github.com:GermaniaKG/Authentication.git germania-authentication
$ cd germania-authentication
$ composer install

Unit tests

Either copy phpunit.xml.dist to phpunit.xml and adapt to your needs, or leave as is. Run PhpUnit like this:, (*6)

$ vendor/bin/phpunit

The Versions

06/09 2017

dev-master

9999999-dev

  Sources   Download

MIT proprietary

The Requires

 

The Development Requires

by Carsten Witt

06/09 2017

dev-develop

dev-develop

  Sources   Download

MIT proprietary

The Requires

 

The Development Requires

by Carsten Witt

12/12 2016