OpenID Connect · SAML 2.0 · open source

The OIDC provider you can verify.

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.

Release 0.1.0-ALPHA · MIT · PHP

beffroi · statusExample

Issuer
https://id.example.com
Conformance
OpenID Basic OP · pass
Signing keys
es256-k2 · active
rs256-k1 · active
Key vault
HashiCorp Vault
Planes
interaction · protocol

$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

Deploy on your own infrastructure.

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

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

Compose

Compose file

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

From 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

Core capabilities.

What the current release ships with. Each capability is detailed on the features page.

01 · Sign-in

Single sign-on

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 and multi-factor authentication

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

FAPI 2.0 and sender-constrained 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

Key management

Signing keys sealed by HashiCorp Vault, AWS KMS or OpenBao, or a sodium key file, and rotated with no downtime.

KMS · rotation

05 · Federation

SAML 2.0 identity provider and service provider

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

Secure 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

Standards and conformance.

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

Getting started.

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.

  1. 01Download the compose file and write its .env: your host, two secrets, your key management service
  2. 02Start the server, which runs the migrations
  3. 03Generate its keys, then start the worker
  4. 04Create a first user and check the issuer
  5. 05Register your first client and sign in, following the guide

No 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/compose.prod.yaml

# .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

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.

Available

In the current release

  • OpenID Connect and FAPI 2.0With CIBA, for every kind of client.
  • SAML 2.0Identity provider and service provider.
  • Passkeys, one-time codes, passwordsWith backup codes.
  • Key managementKeys sealed by your KMS, rotated with no downtime.

Next

Under development

  • SCIM provisioningA directory pushes its users and groups.
  • Upstream OpenID Connect providersGoogle Workspace, Microsoft Entra ID, ProConnect.
  • Keycloak importWith the subject identifiers your clients know.
  • Administration consoleWhat the console commands do today, as pages.

Exploring

Under evaluation

  • OpenID FederationTrust established by signed statements.
  • Shared signalsEvents about a session or an account.
  • Verifiable credentialsIssued and presented over OpenID.

[06] The project

About 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

    Who builds Beffroi

    The creators, the development process, and what a change goes through before it merges.

    About the project
  • Contribute

    Contributing

    One issue per change, one pull request, and the same quality gate for every contribution.

    Contributing guide
  • Security

    Reporting a vulnerability

    A vulnerability goes through the security advisories of the repository, never a public issue.

    How a report is handled

[07] FAQ

Frequently asked questions.

Is Beffroi OpenID certified?
Beffroi runs the conformance suite of the OpenID Foundation every week, in strict mode, from Basic OP to FAPI 2.0 and FAPI-CIBA. The OpenID Certified mark is a filing with the foundation, which the project has not made yet; it will be announced once it is. Conformance testing.
What do I need to run it?
A server, its worker and PostgreSQL, started by one compose file, plus a key management service: yours, or a sodium key generated once into a file. Deployment guide.
Does it support FAPI 2.0, DPoP, mTLS, PAR, JAR and CIBA?
Yes, and the conformance suites for them run every week. FAPI 2.0 on the features page.
Who is behind it?
Two members of the Symfony core team, specialists in security, authentication and authorization, who contributed OpenID Connect login to Symfony 8.2. The code is released under the MIT licence. About the project.

Get started with Beffroi OP.