Registry / auth / tuupola-slim-basic-auth

tuupola-slim-basic-auth

JSON →
library3.4.0phppackagistunverified

PSR-7 and PSR-15 HTTP Basic Authentication Middleware

composer require tuupola/slim-basic-auth
INSTALL
IMPORT
SIG · TUUPOLA-SLIM-BASIC
T
tuupola-slim-basic-auth
authphpv3.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BasicAuth
use Tuupola\Middleware\BasicAuth;

Add HTTP Basic Authentication middleware to a Slim application

use Tuupola\Middleware\BasicAuth; $middleware = new BasicAuth([ 'users' => ['admin' => 'password123'] ]); $app->add($middleware);
Debug
Known issues
gotchaPasswords must be hashed in production
fix
Use password_hash() and store hashed passwords
affects: >=3.0.0
Upgrade
Version history
3.4.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
Amazon
1
Resources
tuupola-slim-basic-auth — pip install tuupola-slim-basic-auth · libregistry