SSO sign in
Single sign-on by work email: finds the company's provider and hands off, or says plainly that the domain has none.
Caliper UI
Try anyone@forma.studio, or any other domain.
When to use
- Business customers sign in through Okta, Entra or Google Workspace.
- You do not want a button for every provider.
When not to use
- Consumer sign in with Google or Apple; use provider buttons on the sign-in form.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/sso-sign-in
Adds its 10 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
SsoSignIn
9 props
PropTypeDefaultDescription
titlestring"Sign in with SSO"
descriptionstring"Use your work email. We will send you to your company's sign-in page."
defaultEmailstring""
onLookup *(email: string) => SsoLookup | Promise<SsoLookup>—Find the identity provider for this address's domain.
onRedirect((url: string) => void)—Leaves for the provider. Defaults to a full page navigation.
onPassword((email: string) => void)—"Sign in with a password" when the domain has no SSO. Receives the typed email.
onMagicLink((email: string) => void)—"Email me a sign-in link" when the domain has no SSO.
back{ href?: string | undefined; onClick?: (() => void) | undefined; label?: string | undefined; }—
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status semantics, with aria-hidden and aria-label kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/sso-sign-in.mdThe index of every part is at /llms.txt.
More in Settings & security
Settings screenSettings that show what changed before you save: an ember mark and the previous value on each field, one bar that names the changes.Password resetForgot password and choose a new one: a cooldown on resend, wording that never reveals who has an account, and clear expired and saved states.Email verificationConfirm an address with a six-digit code that checks itself when complete, with resend and a way to fix a typo.