NextMyDay/internal/core/auth
Claus Lohmar b8ead2bf2d feat(web): role-gate the nav and show the post-setup passkey banner
The shell now renders the CORE nav entries — Home · Account for everyone,
Users · Modules only for an admin — alongside the registry entries, with the
discovered `home` dashboard collapsed onto the core Home entry (SPEC-010 §3).

A signed-in user with no passkey, who has not opted out and is not on a
loopback origin, now sees a prominent "Add a passkey" banner linking to the
Account page (SPEC-010 §6). This closes the D-041 gap where the wizard's
direct session mint bypasses the TOTP-login nudge, so the admin was never
prompted.

The door computes (admin, banner) in serveGUID — it already holds the
session, identity and user — and attaches it to the request context; the new
web.PageFor copies it onto every authenticated page (RequestContext is
untouched, so identification stays separate from authorisation, D-003).
2026-10-15 07:58:09 +00:00
..
flow feat(web): role-gate the nav and show the post-setup passkey banner 2026-10-15 07:58:09 +00:00
totp fix(security): reject replayed TOTP codes 2026-10-14 11:29:55 +00:00
webauthn feat(auth): add WebAuthn, TOTP and the enroll/login flow (SPEC-004/006) 2026-10-14 10:53:53 +00:00
acceptance_test.go feat(auth): add WebAuthn, TOTP and the enroll/login flow (SPEC-004/006) 2026-10-14 10:53:53 +00:00
auth.go feat(auth): add WebAuthn, TOTP and the enroll/login flow (SPEC-004/006) 2026-10-14 10:53:53 +00:00
credentials.go feat(auth): add WebAuthn, TOTP and the enroll/login flow (SPEC-004/006) 2026-10-14 10:53:53 +00:00
identities.go feat(auth): add WebAuthn, TOTP and the enroll/login flow (SPEC-004/006) 2026-10-14 10:53:53 +00:00
sealer.go feat(auth): add WebAuthn, TOTP and the enroll/login flow (SPEC-004/006) 2026-10-14 10:53:53 +00:00
sealer_test.go feat(auth): add WebAuthn, TOTP and the enroll/login flow (SPEC-004/006) 2026-10-14 10:53:53 +00:00
sessions.go feat(auth): add WebAuthn, TOTP and the enroll/login flow (SPEC-004/006) 2026-10-14 10:53:53 +00:00
totp.go feat(auth): add WebAuthn, TOTP and the enroll/login flow (SPEC-004/006) 2026-10-14 10:53:53 +00:00