testing/auth_apps.ts view source
AuthTestApps import type {AuthTestApps} from '@fuzdev/fuz_app/testing/auth_apps.js'; Pre-built Hono apps for each auth level, shared across adversarial test suites.
public
type Hono<BlankEnv, BlankSchema, "/">
authed
type Hono<BlankEnv, BlankSchema, "/">
keeper
type Hono<BlankEnv, BlankSchema, "/">
by_credential_type
One authenticated app per builtin credential type, each holding the
keeper role — the channel axis, where by_role is the authority axis.
A credential gate is pre-authorization, so probing it needs an app on a
channel the route refuses, and proving a gated route still works needs
one on a channel it admits. keeper is the 'daemon_token' entry of
this map, not a second app.
type Map<BuiltinCredentialType, Hono<BlankEnv, BlankSchema, "/">>
by_role
type Map<string, Hono<BlankEnv, BlankSchema, "/">>