Download the PHP package bogosoft/http-auth without Composer
On this page you can find all versions of the php package bogosoft/http-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bogosoft/http-auth
More information about bogosoft/http-auth
Files in bogosoft/http-auth
Download bogosoft/http-auth
More information about bogosoft/http-auth
Files in bogosoft/http-auth
Vendor bogosoft
Package http-auth
Short Description A library for PSR-7 and PSR-15 compliant authentication middleware.
License MIT
Package http-auth
Short Description A library for PSR-7 and PSR-15 compliant authentication middleware.
License MIT
Please rate this library. Is it a good library?
Informations about the package http-auth
bogosoft/http-auth
A PHP library for PSR-7 and PSR-15 compliant authentication middleware.
Requirements
- PHP >= 7.4
Package Dependencies
Installation
Summary
This small library contains a PSR-15 compliant authentication middleware component, AuthenticationMiddleware
,
with the following responsibilities:
- Derive a security context (
IPrincipal
object) from a PSR-7 compliant HTTP request. TheIPrincipal
contract is from thebogosoft/identity
package. - Pass the derived security context to a
IPrincipalHandler
object on a successful authentication attempt. - Immediately return an HTTP response with a
401 Unauthorized
status code on a failed authentication attempt. this is configurable.
Interfaces
Name | Purpose |
---|---|
IAuthenticator |
Derives a security context (IPrincipal ) from an HTTP request. |
IPrincipalHandler |
Handles a derived security context and allows for HTTP request modification. |
Implementations
Name | Interface | Details |
---|---|---|
CompositeAuthenticator |
IAuthenticator |
Allows multiple IAuthenticator objects to behave as one. |
DelegatedAuthenticator |
IAuthenticator |
Turns a callable object in an IAuthenticator interface. |
AuthenticationMiddleware |
MiddlewareInterface |
An authenticating middleware component. |
AttributePrincipalHandler |
IPrincipalHandler |
Stores the derived IPrincipal object into a mutated HTTP request as an attribute. |
DelegatedPrincipalHandler |
IPrincipalHandler |
Turns a callable object into a IPrincipalHandler . |
All versions of http-auth with dependencies
PHP Build Version
Package Version
Requires
bogosoft/identity Version
^1.0
php Version >=7.4
psr/http-factory Version ^1.0
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
php Version >=7.4
psr/http-factory Version ^1.0
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
The package bogosoft/http-auth contains the following files
Loading the files please wait ....