LuxelEspañol

Luxel v0.1 · Reference · part 13 of 14

API reference (13)

ExportKindDescription
SESSION_COOKIEconst__Host-: Secure, Path=/, no Domain — the browser enforces all three. */
sessionBindingfunctionBinds a token to a session without putting the session id in it. */
SessionDelegateinterfaceWhat the app's backend implements. Every call names the session by hashSessionId(id): the backend never sees the id (nor the cookie), and luxel-host keeps nothing. The backend decides whether a session is valid (its own expiry, revocation, the user still active…) and may keep its own credentials for it (the pilot application: the JWT FastAPI issued, which never leaves the server). validate returns the principal as open received it, every field included (Sprint 13.5: under identity.mode: "gateway-jwt" the principal carries identityKey, which binds the session). /
SessionLifetimesinterface—
SessionPrincipalinterface—
sessionRecordfunctionThe record a store returns for an id and what it keeps about it. */
SessionRecordinterface—
SessionResolvertypeResolves the Cookie header to a live session (anonymous or authenticated), or null. Sprint 8: it may answer with a promise (sessions in PostgreSQL, for several nodes; ADR-035). Sprint 13.5: the request is passed too (luxel-host under identity.mode: "gateway-jwt" answers the session its identity gate resolved for that request; ADR-065). A resolver that needs only the cookie ignores it. /
SessionRevokedErrorclassS1l (ADR-065 §17): the user was revoked between the read of the revocation counter and the open: nothing opened. */
sessionSetCookiefunction—
SessionStartertypeoptions.id (S1k, ADR-065 §16): the id the new session must have (luxel-host's starter honours it). options.pendingUntil (ADR-065 §24, M-OPEN): the session is opened provisional, ending by itself at that time. /
SessionStoreinterface—
sha256const—
SIGNATURE_FILEconst—
signProvenancefunction—
startHostfunctionlistenHost: the address to listen on (default: every interface, as a server behind a proxy needs). Sprint 11: luxel dev passes 127.0.0.1 (a development host is never reachable from the network). /
STATIC_SESSIONconstSprint 10 (ADR-046): what a static view's load and handlers see when the request has no session. No id, no user, no CSRF token: nothing to fix, steal or store. /
StoredSurfaceinterfaceA dynamic surface as one node projected it (luxel check passed there), for the other nodes. */
storeSessionsfunctionresolveSession / startSession / login / logout over a SessionStore, with the __Host- cookie. */
StoreSessionsinterface—
stringLeavesfunctionEvery string a value holds (itself, the items of a list, the values of an object), a few levels deep. */
SurfaceStoreinterface—
TextNormalizationtypeSprint 12 (red team RT-13): text normalization of an input. Zero-width characters (U+200B–U+200D, U+2060, U+FEFF) and control characters other than tab and line breaks are removed, then the text is put in Unicode normal form NFC or NFKC (NFKC also folds look-alike compatibility forms such as full-width letters). Applied by the gateway before the sign-in limits and before any adapter. /
tokenHashconstThe key of a token in the verification cache (the token itself is never kept). */
untrustedIdentityHeadersfunctionThe families of untrusted identity headers in the request (the other token headers included). */
verifyFormTokenfunction—
Edit this page on GitHub

This page: 7.9 KB of JavaScript (Luxel's shared runtime), 0 KB from your app.

Measured when the site is built: the runtime files this page loads, compressed as they are sent.

Made by IntiOps. The Luxel 0.1.0 betas are on npm (0.1.0-beta.1, 0.1.0-beta.2), with an alpha of 0.2 (0.2.0-alpha.1): no external security review yet.