Nav hint from own grants and roles (never a control); RequireCatalog, RequireAdmin (no admin read before aal2), Accès non autorisé page, placeholder routes; TOTP factor list, enrolment with QR and one-time secret, removal, inline step-up for aal2 actions, step-up in password reset; auth kind aal2_required. App 601, e2e:ui 227.
27 lines
982 B
TypeScript
27 lines
982 B
TypeScript
import ButtonLink from '@/components/ui/ButtonLink'
|
|
import Card from '@/components/ui/Card'
|
|
import { usePageHeading } from '@/app/usePageHeading'
|
|
import { useT } from '@/i18n/useT'
|
|
|
|
/**
|
|
* « Accès non autorisé » (contract §5.3, BDR-094): what a catalogue or
|
|
* administration page shows when the server refuses (`rights.*`, and
|
|
* `not_found` under /app/anatomy), the same whether the sheet exists or not.
|
|
* Nothing from the address is echoed.
|
|
*/
|
|
export default function AccessDenied() {
|
|
const t = useT()
|
|
const heading = usePageHeading()
|
|
return (
|
|
<Card as="section" className="space-y-3 p-5 sm:p-6">
|
|
<h1 ref={heading} tabIndex={-1} className="outline-none font-serif text-2xl text-[var(--color-ink)]">
|
|
{t('access_denied.title')}
|
|
</h1>
|
|
<p className="text-sm text-[var(--color-ink-muted)]">{t('access_denied.body')}</p>
|
|
<ButtonLink to="/app" variant="secondary">
|
|
{t('access_denied.back')}
|
|
</ButtonLink>
|
|
</Card>
|
|
)
|
|
}
|