Expand description
Source-only internal persistence foundation. No network listener, token signer, runtime factory, migration-on-start or account authority is installed here. Policy must supply an admitted account/tenant/grant decision after authenticated OAuth has verified the source token and both possession signatures. This API is not a verifier: never pass a deserialized browser request directly to it. The caller supplies a dedicated, TLS-verified PostgreSQL connection under the narrow runtime role. No DSN or token bodies are accepted or logged here.
Modules§
- primary
- Internal Policy lookup. No credential verification, grants or public route.
Structs§
- Admission
- Pending
Session - Policy’s authoritative pre-admission decision. No epoch can be supplied: PostgreSQL generates it only for a committed session.
- Primary
Record - A full active session together with the one durable source identity that
admitted it. Fields stay private so consumers obtain this binding only
through
Store::lookup_primary, never from a browser DTO. - Session
- An admitted, immutable record returned only after the transaction commits.
- Source
- Upstream-verified source metadata; never the raw ID token.
- Store
- Owns no pool or fallback authority. A dedicated connection is borrowed per operation; caller cancellation drops/rolls back the transaction. Commit errors (including ambiguous commit outcome) never return a usable admission receipt.
Enums§
- Error
- Sanitized failures: PostgreSQL detail strings can include bound values.