Http401
in package
implements
IEvent
Event generated when a 401 Unauthorized error occurs.
Happens before the rendering of the error page.
This event is emitted when authentication is required but not provided or when provided credentials are invalid.
Table of Contents
Interfaces
- IEvent
- Core event interface for the Neuron event system.
Properties
Methods
- __construct() : mixed
Properties
$realm
public
string|null
$realm
$route
public
string
$route
Methods
__construct()
public
__construct(string $route[, string|null $realm = null ]) : mixed
Parameters
- $route : string
-
The route that triggered the 401 error
- $realm : string|null = null
-
Optional authentication realm (e.g., for WWW-Authenticate header)