Authenticate exclusively through Thermopylae #7
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/thermopylae-only"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
set_unusable_password(). Legacy hashes cannot authenticate through the sole OIDC backend. Hide admin password navigation with a normal template override, not a model override.mozilla-django-oidc5.0.2 with RS256, PKCE S256 andopenid email profile roles. Apply the per-clientadminrole on every sign-in. Require verified email, validate signed ID-token issuer/audience/authorized party/expiry and enforce UserInfo/ID-token subject consistency before provisioning or linking.next; logout is a CSRF-protected POST with a public signed-out screen. Failure screen stays public.Existing accounts and migration
Dome has usernames but no email field; copying Mado's email matching would be unsafe. The additive
users/0003_oidcidentitymigration binds accounts to stable(issuer, sub)identities without changing usernames, tracking ownership, avatars or tokens.Automatic migration for the confirmed existing account:
users/0004_link_exler_thermopylaecreates the pending pairingexler→kamil@marut.networkathttps://thermopylae.marut.network. Deploy and run the ordinary migrations; no manual account-linking command is needed. The first verified provider sign-in binds its stable subject to the existing user, keeping the same profile, tracking and API tokens. Migration is independent of environment configuration, does not create an absent user, and never overwrites an existing identity. A conflicting email pairing stops safely. Reverse is a no-op, retaining the identity.This is an explicit owner-approved one-time data mapping, not a runtime username-matching exception. Subsequent email changes do not change ownership or profile URLs.
Verification
has_usable_passwordor session-hash overrides remain.uv lock --check,makemigrations --check --dry-run, andgit diff --checkpass. No OIDC config produces a documentedusers.W001warning rather than breaking build/migration.Rollout / limitations
Not deployed. Register the Dome client in Thermopylae with
https://<dome-host>/oidc/callback/, configureOIDC_ISSUER,OIDC_CLIENT_ID,OIDC_CLIENT_SECRET, apply migrations (the existingexleraccount is paired automatically), and open sign-in. No real-client end-to-end callback has been exercised; browser QA used a placeholder client ID and stopped at the provider login.Existing sessions are invalidated because their password backend is removed. Logout ends only the Dome session (Thermopylae advertises no end-session endpoint). Existing password hashes are retained but cannot authenticate. Rollback requires reverting application code; the additive identity table can remain without affecting old tables.
Visual verification