Files
ZitPlane/users/ui/src/app/(protected)/account/security/page.tsx
T

58 lines
1.9 KiB
TypeScript
Raw Normal View History

import { requireIdentity, zitadelSelfServiceUrl } from "@/lib/identity";
export const metadata = { title: "Security" };
const items = [
{
title: "Password",
detail: "Password changes and recovery are handled by ZITADEL."
},
{
title: "Multi-factor authentication",
detail: "Manage available authenticators and verification methods under your identity policies."
},
{
title: "Passkeys and security keys",
detail: "Available methods depend on your organization's ZITADEL configuration."
}
];
export default async function SecurityPage() {
await requireIdentity();
return (
<div className="content-stack">
<div className="page-heading">
<p className="eyebrow">SECURITY</p>
<h1>Security settings</h1>
<p className="muted">
ZitPlane delegates credentials and authentication to ZITADEL.
No password or MFA secret is stored in this portal.
</p>
</div>
<section className="card" aria-labelledby="security-tools">
<h2 id="security-tools">Account protection</h2>
<div className="setting-list">
{items.map((item) => (
<div className="setting-row" key={item.title}>
<div>
<h3>{item.title}</h3>
<p className="muted">{item.detail}</p>
</div>
<span className="pill">ZITADEL</span>
</div>
))}
</div>
<a className="button button-primary" href={zitadelSelfServiceUrl()}>
Open central security settings
<span aria-hidden="true"> ↗</span>
</a>
</section>
<p className="form-note">
This link opens the existing ZITADEL self-service console. Access and
available controls depend on the user's permissions and active policies.
Portal-local sign-out does not terminate every application's SSO session.
</p>
</div>
);
}