# Hyalen Security, Institutional SSO & Formal Verification

## Identity & Access Control
- **OIDC PKCE `S256`:** Native Authorization Code flow with PKCE for HarvardKey, Okta, Microsoft Entra ID, Google Workspace, and Keycloak. Never collects institutional passwords.
- **SAML 2.0 SP Metadata:** Served at `/api/v1/auth/saml/metadata` for InCommon Federation / Shibboleth integration.
- **Zero-Trust Domain Guard:** An institutional email address alone never grants access to any laboratory workspace; explicit invitation or IdP group mapping is required.
- **QR Phone Companion Tether:** Pairing tokens are 30-minute TTL, stored only as SHA-256 hashes, revocable instantly, and strictly capped at the pairing user's RBAC role.

## Formal Verification & Privacy
- **18 Z3 SMT UNSAT Proofs:** Mechanically verify cross-tenant isolation, RBAC lattice boundaries, box slot bijectivity, pagination bounds, and batch section monotonicity.
- **Non-PHI Barcode Guard:** Blocks emails, SSN/MRN patterns, and sensitive strings from being encoded into Data Matrix or QR labels.
- **Zero-Egress Self-Hosting:** Offline Ed25519 license tokens (`hyalen_lic_*`) verify locally against public key `ZxWVL3J-STyNpmUrdm-7Io_wCRsbZ3xEAIvpryKdMB8` with zero phone-home telemetry.

## Compliance & Procurement
- **Scope:** Research Use Only · **Non-PHI (Harvard DSL 1–3)**.
- **Accessibility:** WCAG 2.1 AA contrast, full keyboard navigation, ARIA live regions.
- **HECVAT v4 / VPAT 2.4 Packet:** Request via `security@hyalen.com`.
