Download the PHP package germania-kg/authentication without Composer
On this page you can find all versions of the php package germania-kg/authentication. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package authentication
Germania KG · Authentication
This package was destilled from legacy code!
You better do not want it to use this in production.
Installation
Overview
AuthUserInterface
AuthUserMiddleware
Constructor accepts:
- AuthUserInterface instance
- Aura\Session\SegmentInterface instance.
- User ID session field name
- Optional: PSR-3 Logger
Middleware does:
- 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 theuser
attribute still is AuthUserInterface instance.
LoginController
TBD.
LogoutController
TBD.
Development
Unit tests
Either copy phpunit.xml.dist
to phpunit.xml
and adapt to your needs, or leave as is.
Run PhpUnit like this:
All versions of authentication with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
psr/log Version ^1.0
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
aura/session Version ^2.1
psr/log Version ^1.0
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
aura/session Version ^2.1
The package germania-kg/authentication contains the following files
Loading the files please wait ....