1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Request authentication supplied by the embedding application, not by PHP.
//!
//! Bind `dyn PhpRequestAuthenticator` in the runtime registry before PHP boots.
//! The application owns credential extraction, user lookup and session activity
//! policy. The bridge caches only the verified result in the current HTTP request;
//! it never retains a raw credential or exposes a mutable session to PHP.
use async_trait;
use Authenticated;
use AuthenticatedSession;
use HeaderMap;
use ;
/// Raw model attributes, not an API serializer or accessors. Decimal values and
/// JSON database columns must remain strings; no floating-point money conversion.
pub type ModelAttributes = ;
/// Application-owned field projection, without another lookup. PHP value
/// encoding stays in this crate. Hidden/internal fields are hydration data,
/// never a public response serializer.
/// Called on the host runtime when PHP first asks for its request's identity.
/// Anonymous/invalid credentials return `Ok(None)`; infrastructure failures
/// return an error and become a PHP exception, not a successful anonymous request.