clauth github ↗ Get started

Security & privacy

A sign-in server should know as little as it can.

Clauth holds the keys to your apps, so its job is kept small: who someone is, which apps they may use, and a record of what happened. Here's the security model — and how to report a problem.

Accounts

Passwords are never stored

Only a one-way hash. 2-step secrets and recovery codes are encrypted or hashed. Repeated failures lock the account.

Tokens

Signed, short-lived, checked

Apps must use PKCE and a nonce. Tokens are signed with keys published at the JWKS endpoint, and role changes reach apps within 15 minutes.

Phishing

Sign-in pages you can trust

Custom domains need DNS proof. Apps can't imitate other companies, and every sign-in page has a "Report this page" link.

Consent

Outside apps ask first

An app from outside your organizations shows what it wants before you continue. Remove its access any time.

Keys

Rotate signing keys safely

Stage a new key, publish it in JWKS, then activate it — apps pick it up without anyone being signed out.

Abuse

Rate limits and lockouts

Sign-in, token and API endpoints are rate-limited, and organizations have limits on members, apps and domains.

What a Clauth server stores

Data on your server, with an end date by default.

DataWhyHow long
Name, email, password hash, 2-step settingsTo sign you inWhile your account is active
Organizations, apps and rolesTo tell apps what you may doWhile your account is active
Security records (time, IP, browser, devices)To protect your account and spot abuseOne year
Backups (scripts included)To recover from failures30 days, encrypted off-box if you enable it
Deleted organizationsGrace period for mistakes30 days, then removed

What apps receive

Only their slice of you.

An app you sign in to gets your name, email, and your roles in that app — never your password, your other apps or your other organizations.

Self-hosted

You choose every provider.

  • HostingAny server with PHP, MySQL and HTTPS
  • EmailAny SMTP service, for invites and password resets
  • BackupsAny S3-compatible storage, encrypted before upload

Found a vulnerability?

Please don't open a public issue. Report it privately through GitHub's security advisories. You'll get a reply within a few days, and credit in the changelog if you'd like it.

Report privately