Build on Clavex
Clavex is a sovereign European identity server — OIDC, OAuth 2.1, SAML 2.0, eIDAS,
SPID, CIE, BundID, and FAPI 2.0 out of the box. Self-host in minutes with Docker;
scale to millions with Kubernetes. This portal covers everything you need to integrate,
from your first authorization_code flow to production-grade FAPI 2.0 deployments.
create-clavex-app scaffolds a complete Next.js (or React) project with Clavex pre-wired — OIDC callback, session store, token refresh, and protected routes included. No config-file archaeology.
$ npx create-clavex-app myapp --framework nextjs $ cd myapp && npm run dev # → http://localhost:3000 — login page ready, SDK wired, OIDC flowing
Architecture Overview
Clavex runs as a single stateless binary backed by PostgreSQL and (optionally) Redis. It speaks to your applications via standard protocols and to external identity providers via SAML 2.0 or proprietary adapters.
Protocol Support
| Protocol / Feature | Status | Notes |
|---|---|---|
| OpenID Connect Core 1.0 | Certified | All response types |
| OAuth 2.1 / RFC 9068 | GA | PKCE mandatory |
| FAPI 2.0 Security Profile | GA | PAR + JARM + DPoP |
| SAML 2.0 (SP-initiated) | GA | SPID, CIE, eIDAS, BundID |
| SCIM 2.0 | GA | Groups + Users push & pull |
| Passkeys / WebAuthn L2 | GA | MDS3 policy enforcement |
| SSF / CAEP (push + poll) | GA | Real-time revocation SETs |
| OpenID Federation 1.0 | Beta | Trust chain traversal |
| OID4VCI / OID4VP | Beta | SD-JWT VC, mdoc |
| OID4VP (Verifier API) | Beta | Same-device & cross-device |
Key Concepts
Organizations (Tenants)
Clavex is multi-tenant by design. Each Organization has its own slug
(e.g. acme), isolated user database, OIDC clients, identity providers,
branding, and audit log. The OIDC issuer for an org is
https://id.example.com/acme.
OIDC Clients
Register clients via the Admin API or the management UI. Each client can configure allowed redirect URIs, grant types, token lifetimes, DPoP requirements, FAPI profile, and per-client branding (logo, colors). Clients can be confidential (client_secret or private_key_jwt) or public (PKCE only).
Identity Providers
External logins (SPID, CIE, eIDAS, BundID, FranceConnect, itsme, DigiD) connect as SAML 2.0 service providers managed per-organization. OIDC upstream providers are also supported for social logins or corporate SSO federation.
Passkeys & MFA
Users can register WebAuthn authenticators (passkeys) as a primary credential or second factor. Attestation policies enforce minimum MDS3 certification levels and automatically revoke sessions when a device is flagged REVOKED in the FIDO Alliance catalog.