Why this matters
Healthcare data is the most sensitive thing a hospital holds, and the sessions through which clinicians reach that data are the narrowest gate where identity becomes access. A weak session model — silent renewal, ambiguous logout, "shared" workstations, unauditable device hand-offs — undoes every isolation guarantee the rest of the platform provides. A regulator asking "who was logged in when this record was read?" deserves a precise answer, not an inference.
A modern healthcare workflow also no longer lives on one screen. A clinician moves between a desktop in the consult room, a tablet on rounds, and a mobile companion app in the corridor. Each device is its own attack surface; pretending they're the same session by sharing a password is the failure mode hospitals already see. The platform's answer is a single owned session, extended to additional devices through a deliberate, auditable pairing, with a single sign-out that ends every device's inheritance simultaneously.
The strategic value: clinicians stay in flow across devices without the platform losing track of who is acting; the audit trail names the session every action belongs to; and a lost device or terminated employee is one sign-out away from being sealed out everywhere.
What's in the box
-
Sign-in establishes a session. A successful sign-in mints a session bound to exactly one user, one customer organisation, and one identity. The session carries no clinical data — only a verifier the user agent presents on every subsequent request. The boundary is set the moment the session begins.
-
Sign-out is a real action. Signing out invalidates the session immediately on the server side, clears the device-side session credential, and produces an audit event recording who signed out and when. The next request from the same browser starts unauthenticated. There is no quiet session extension on the way out.
-
Sessions are time-bounded. Every session has a defined maximum lifetime, enforced regardless of activity. After expiry the next request returns to the sign-in page, and the expiry itself is an audit event — the trail distinguishes user-initiated sign-out from a session that simply ran out.
-
One user, one customer organisation per session. A user choosing to work with a different customer organisation gets a fresh session. The platform never issues a token that authorises both customer organisations at once; impersonation between customers is structurally impossible at the session layer.
-
Suspended customer organisations reject sign-in cleanly. A user trying to sign in to a paused customer organisation sees a distinct "this organisation is paused" message — not the deliberately-vague invalid-credentials fallback. Operators can tell "wrong password" from "customer organisation suspended" without contacting support.
-
Audit covers every transition. Sign-in success, sign-in failure, sign-out, expiry — and (when device binding lands) device-pair and device-revoke — each is a regulator-readable audit event in the affected customer organisation's trail. A regulator asking "who logged in to this customer organisation in the last 30 days" gets a precise answer.
-
Device binding extends the session to a known device. (Planned.) A clinician's mobile or tablet companion app authenticates once against the user's active session and inherits its identity and organisation context. The pairing produces an audit event naming the device. The bound session follows the same lifecycle as the originating session — sign-out propagates, expiry propagates — and the user can revoke a single device without ending the whole session.
Standards we lean on
- GDPR Article 32 — security of processing. Session security is part of the technical safeguards regulators expect.
- HIPAA 45 CFR 164.312(a)(2)(iii) — automatic logoff. The session-expiry property is the platform's answer to this technical safeguard.
- HIPAA 45 CFR 164.312(b) — audit controls; every session transition is captured.
- OAuth 2.0 (RFC 6749) and OIDC — session-establishment patterns the platform builds on rather than reinvents.
- NIST SP 800-63B — digital identity guidelines for session management.
What customers and operators experience
- A clinician signing in is bound to their organisation for the duration of their session. The session lasts long enough for a working day but no longer; re-authentication is part of the rhythm, not an interruption to apologise for.
- A clinician signing out can verify the session is gone — the next page-load is the sign-in screen, the audit trail records the sign-out, and any device paired to that session loses its access at the same moment.
- A clinician on a tablet (future) pairs the tablet to their active session once; subsequent rounds use the tablet without a second password. Sign-out from desktop ends the tablet session immediately, with a clear message rather than a silent failure.
- A clinician with the wrong password sees an invalid-credentials message that doesn't disclose whether the username or customer organisation exists. A clinician hitting a paused customer organisation sees the distinct "organisation paused" message instead.
- A regulator auditing sign-ins for a customer organisation runs a vanilla FHIR query against the audit trail (audit record by type code, by date) and gets the full who-when-where record.
- A platform admin investigating a session anomaly can see the same trail, scoped to the customer organisation in question, without any privileged read path.
Limits and trade-offs
-
No silent session extension. Sessions don't quietly renew on activity past the absolute lifetime; the user signs in again. Convenience would be invisible erosion of the audit-trail integrity the rest of the platform depends on.
-
One session per user-customer organisation pair. Concurrent multi-customer work means two browser sessions side-by-side, not one token authorising both. Annoying for users with several organisations; non-negotiable for the boundary.
-
Idle vs. absolute timeout — both apply. Whichever fires first ends the session. The platform errs toward the shorter of the two.
-
Device binding inherits the user's session lifecycle. (When it lands.) A device cannot outlive the session it's bound to. Hospitals that want device-only access for long-running displays will need a separate provisioning path (out of scope today).
-
A rotated signing key drains; it does not cut — but only within its window. Rotating the key that signs sessions keeps the outgoing key for verification, so sessions issued before the rotation run out their own clock instead of dropping at once. Retire the outgoing key sooner than the session lifetime and those sessions end immediately. That is a deliberate operator choice, and the only way to end every session at once on purpose.
-
Session credentials are device-side. The platform cannot revoke a stolen device's local credential after network loss; the credential's expiry is the bound on damage. This is the reason for short maximum lifetimes.