--- status: accepted date: 2026-08-16 --- # Authenticate with local accounts or OIDC Production authentication is either `local` (passwords hashed with Argon2id, optional "remember me" sessions) or provider-neutral `oidc`. OIDC must return a `groups` claim in the ID token as a JSON array; a missing or malformed claim fails authentication instead of granting ordinary access. Groups map to ThothII roles in installation configuration, and each mapped group must be proven to exist through a provider-specific catalog adapter, initially Authentik. The browser receives only an opaque `HttpOnly` session cookie and never stores tokens. `none` and `mock` are test-only. This replaces ADR-0007. ## Consequences `upstream`, where a trusted proxy injects identity headers, was kept as a migration adapter. It became the integration path for Omics Portal (ADR-0045).