papertrail/components/sso/ProtocolSelect.tsx
caelum0x 695a365ae4 feat: PaperTrail — enterprise evidence-verification platform
Multi-tenant platform (182 pages, 228 API routes, ~30 modules) built on a
deterministic verification core: clinical-trial claims checked against
ClinicalTrials.gov registered results and raw event counts (ARR/NNT/RR+CI
recomputed in code, oracle-tested), code-enforced exact-span grounding, and
multi-source cross-verification. Auth/RBAC/multi-tenancy, document processing
at scale (unpdf + Docling), agentic workflows, Claude Science connector,
compliance/audit, billing, public API, and more.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-08 07:21:22 +03:00

48 lines
1.6 KiB
TypeScript

"use client";
import type { SsoProtocol } from "@/lib/sso/types";
import { PROTOCOL_OPTIONS } from "@/components/sso/fields";
// Protocol picker step of the connection wizard: choose SAML or OIDC. Controlled
// by the parent form. Presentational.
interface ProtocolSelectProps {
value: SsoProtocol;
onChange: (protocol: SsoProtocol) => void;
}
export function ProtocolSelect({ value, onChange }: ProtocolSelectProps) {
return (
<fieldset>
<legend className="text-xs font-semibold uppercase tracking-wide text-ink/60">
Protocol
</legend>
<div className="mt-3 grid gap-3 sm:grid-cols-2">
{PROTOCOL_OPTIONS.map((opt) => {
const active = opt.value === value;
return (
<button
key={opt.value}
type="button"
onClick={() => onChange(opt.value)}
className={`text-left border rounded-lg p-4 transition-colors ${
active
? "border-accent bg-white"
: "border-ink/15 bg-paper hover:border-accent"
}`}
aria-pressed={active}
>
<div className="text-sm font-medium text-ink/80">{opt.label}</div>
<p className="mt-1 text-xs text-ink/50">
{opt.value === "saml"
? "Assertion-based SSO via IdP metadata and an X.509 signing certificate."
: "Token-based SSO via an issuer URL and client credentials."}
</p>
</button>
);
})}
</div>
</fieldset>
);
}