Download the PHP package componenta/auth-session-http without Composer
On this page you can find all versions of the php package componenta/auth-session-http. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download componenta/auth-session-http
More information about componenta/auth-session-http
Files in componenta/auth-session-http
Package auth-session-http
Short Description PSR-7/PSR-15 browser transport for Componenta authentication sessions
License MIT
Informations about the package auth-session-http
Componenta Auth Session HTTP
Secure browser transport and PSR-15 integration for componenta/auth-session.
Active authentication sessions use a non-persistent __Host- cookie with
Secure, HttpOnly, Path=/ and explicit SameSite. Persistent
remember-me credentials belong to the future componenta/auth-remember-me
capability package.
This package also owns browser-only session security:
- pre-authentication cookie + request-token binding;
- session assurance middleware;
- activity tracking;
- authentication-session logout/publication;
- CSRF tokens bound to
AuthSession::$uuid + credentialGeneration.
CSRF lives under Componenta\Auth\Session\Http\Csrf; there is no separate
componenta/auth-session-csrf package in the Auth 3 architecture.
The package requires componenta/http-csrf-middleware ^3.0. Unsafe browser
requests therefore follow the CSRF v3 trust model: Fetch Metadata is used as
defense in depth, Origin/Referer is verified, and the token is bound to the
authoritative authentication session. Middleware integration relies on the
guarded handler being invoked, not on PSR-7 response object identity, so
response decoration such as Vary does not turn an accepted request into a
false rejection.
Session activity
Idle lifetime is fail-safe. AuthSessionActivityMiddleware touches a session
only when the request attribute SessionActivity::class equals
SessionActivity::Interactive. Unclassified/background requests and 401/403
responses do not extend idle expiry.
All versions of auth-session-http with dependencies
componenta/auth-http Version ^1.0
componenta/auth-session Version ^1.0
componenta/http-csrf-middleware Version ^3.0
componenta/identity Version ^1.0.1
php Version ^8.4
psr/clock Version ^1.0
psr/http-factory Version ^1.1
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0