semitexa / auth
Semitexa Auth - user authentication with credential flows, sessions, and access tokens
2026.04.05.0855
2026-04-04 12:09 UTC
Requires
- php: ^8.4
- semitexa/core: *
This package is auto-updated.
Last update: 2026-04-05 09:00:30 UTC
README
User authentication with credential flows, sessions, and pluggable auth handlers.
Purpose
Manages request-level authentication. Discovers auth handlers via #[AsAuthHandler], chains them per strategy (first_match, collect, required), and stores the authenticated principal in coroutine-safe context.
Role in Semitexa
Depends on semitexa/core. Depended on by semitexa/authorization, semitexa/api, and platform packages. Auth resolves identity; access control decisions are delegated to downstream packages.
Key Features
#[AsAuthHandler]attribute for automatic handler discovery- Strategy-based handler chaining: first_match, collect, required
AuthBootstrapperorchestrating per-request authentication- Coroutine-safe
AuthContextStorefor Swoole environments SessionAuthHandleras the default implementationAuthenticatableInterfacecontract for principal types
Notes
Auth resolves identity only. Access control decisions are handled by semitexa/authorization.