Image
Docker image
FrankenPHP in worker mode, built from the repository with locked dependencies. Deploy it on the orchestrator you already run.
docker pull ghcr.io/beffroi-auth/beffroi:0.1.0
Deployment guide
OpenID Connect · SAML 2.0 · open source
beffroi /bɛ.fʁwa/ n.
An open source OpenID Connect and SAML 2.0 provider for your applications. Tested against the OpenID conformance suite every week, with signing keys sealed in your KMS and no global switch that turns a protection off.
beffroi · statusExample
$bin/console beffroi:keys:list
01 / Conformance
Weekly conformance testing
The OpenID Foundation conformance suite runs against Beffroi every week, in strict mode, from Basic OP to FAPI 2.0. Conformance testing
02 / Defaults
Secure defaults
PKCE required, exact redirect URI matching, no implicit or password grant. No global switch turns a protection off. Security
03 / Keys
Keys sealed in your KMS
Signing keys and personal data are sealed with keys your KMS holds: a database dump alone exposes neither. Key management
04 / Licence
MIT licensed
All of the code is on GitHub, and every outbound connection is documented.
[01] Deployment
A Docker image, a compose file, or the source. The provider and its worker run from the same image or the same checkout, next to PostgreSQL and a key management service.
Image
FrankenPHP in worker mode, built from the repository with locked dependencies. Deploy it on the orchestrator you already run.
docker pull ghcr.io/beffroi-auth/beffroi:0.1.0
Deployment guide
Compose
Starts the provider, its worker and PostgreSQL. It points to your key management service, or to a sodium key file if you run none.
docker compose -f compose.prod.yaml up -d --wait
Installation guide
Source
The Symfony application of the repository, on your own PHP 8.4 runtime and web server, with PostgreSQL and your key management service. The provider and its worker run from the same checkout.
git clone https://github.com/beffroi-auth/beffroi.git
The application on GitHub
[02] Capabilities
What the current release ships with. Each capability is detailed on the features page.
01 · Sign-in
OpenID Connect for your applications and SAML 2.0 for the ones that require it, on the same users and the same sessions.
OpenID Connect · SAML 2.0
02 · Credentials
Passkeys, one-time codes and backup codes are built in. Each tenant sets the minimum authentication level of its sign-ins.
Passkeys · TOTP
03 · Tokens
Tokens bound to the key or the certificate of the client with DPoP or mutual TLS, and authorization requests pushed or signed.
FAPI 2.0 · DPoP · mTLS
04 · Keys
Signing keys sealed by HashiCorp Vault, AWS KMS or OpenBao, or a sodium key file, and rotated with no downtime.
KMS · rotation
05 · Federation
Act as the identity provider of your applications, or let the users of an organisation sign in through their own identity provider, discovered from their email domain, with groups mapped at first sign-in.
IdP · SP
06 · Defaults
PKCE required, exact redirect URI matching, no implicit or password grant, and no global switch that turns a protection off.
No global insecure mode
[03] Standards
Beffroi implements OpenID Connect, OAuth 2.0, FAPI 2.0, WebAuthn and SAML 2.0. The OpenID Foundation conformance suite runs against it every week in strict mode, where a warning counts as a failure, and SAML is verified with xmlsec1, OpenSSL and third-party service providers.
[04] Boot sequence
One compose file, five values in its .env file, and a few console commands. A tenant is one issuer, with its host, its signing keys, its sign-in policy and its clients.
.env: your host, two secrets, your key management serviceNo default secrets: the compose file does not start without your host, your secrets and your KMS settings. With the sodium backend, generate its key once into the volume with the command given in the header of the file. The issuer cannot be changed once the tenant is created. Installation guide, step by step.
Get started$curl -fsSL -O \
https://raw.githubusercontent.com/beffroi-auth/beffroi/0.1.0
# .env: SERVER_NAME, APP_SECRET, POSTGRES_PASSWORD, BEFFROI_KMS_DSN, BEFFROI_KMS_KEY_ID
$docker compose -f compose.prod.yaml up -d --wait op
$docker compose -f compose.prod.yaml exec op bin/console beffroi:keys:generate --algorithm=MESSAGE-SEAL
$docker compose -f compose.prod.yaml exec op bin/console beffroi:keys:generate
$docker compose -f compose.prod.yaml up -d --wait
$docker compose -f compose.prod.yaml exec op bin/console beffroi:user:create alice --email alice@example.com
$docker compose -f compose.prod.yaml exec op bin/console beffroi:user:set-password alice
$curl https://id.example.com/.well-known/openid-configuration
# {"issuer":"https://id.example.com", ...}
[05] Roadmap
What the current release includes, what the project is working on, and what it is evaluating. There are no dates: an item moves from Next to Available when it ships.
In the current release
Under development
Under evaluation
[06] The project
Beffroi was created by two members of the Symfony core team, specialists in security, authentication and authorization. The code is released under the MIT licence.
About
The creators, the development process, and what a change goes through before it merges.
About the projectContribute
One issue per change, one pull request, and the same quality gate for every contribution.
Contributing guideSecurity
A vulnerability goes through the security advisories of the repository, never a public issue.
How a report is handled[07] FAQ