pub fn classify_auth_block(
req: &ProbeDefinition,
res: &ResponseSurface,
) -> Option<AuthBlockSignature>Expand description
Classifies a single request/response pair as auth-involved or not.
Order of checks (first match wins):
- 401 →
OriginAuthentication. - 407 →
ProxyAuthentication. - 511 →
NetworkAuthentication. - 403 with auth-layer evidence →
OriginAuthorization(delegates toclassify_403_auth_block). - Any non-401 with
WWW-Authenticate→OriginAuthentication. - 3xx with login-redirect signal →
LoginRedirect. - Body-only auth-error envelope →
AuthErrorEnvelope.