Programadores
Permita que os seus utilizadores iniciem sessão como uma única pessoa verificada: um fornecedor OpenID Connect normalizado, com respostas sobre a idade e códigos de uma ação por pessoa, e sem dados pessoais que não peça.
Os detalhes técnicos abaixo estão em inglês.
Status: Sign in with Equalitus and the serial lookup come with the authenticator release that accompanies app 0.2.9, and public contexts are available. Fees and the free lane (wallets and issuer keys) follow with the next network upgrade; anonymous contexts with a later one; wallet credentials once the credential issuer is live. Check an endpoint before you depend on it: routes that need a later upgrade answer 404 or 503.
Sign in with Equalitus
Equalitus is a standard OpenID Connect provider. Each user is one verified human, identified by a government document chip and a passkey on their phone. Users approve every login in the Equalitus app.
- Authorization code flow with PKCE (
S256) only. No implicit or hybrid flow, norequest,request_uriorclaimsparameter;response_mode=queryonly. - Client authentication at the token endpoint:
client_secret_basicorclient_secret_postfor confidential clients (not both at once), none for public clients (PKCE alone). - ID tokens are signed ES256; keys are published at the JWKS endpoint.
- The authorization response carries
iss(RFC 9207). Check it. - Any OIDC library works: openid-client, Spring Security, or Keycloak and Auth0 as an upstream identity provider.
Endpoints
- Discovery
https://auth.equalitus.com/.well-known/openid-configuration- Issuer
https://auth.equalitus.com- Authorization
https://auth.equalitus.com/oidc/authorize- Token
https://auth.equalitus.com/oidc/token- UserInfo
https://auth.equalitus.com/oidc/userinfo- JWKS
https://auth.equalitus.com/oidc/jwks.json
Authorization requests expire after 5 minutes. Codes expire after 60 seconds and are single use (spent by the first attempt, right or wrong). ID tokens and access tokens last 300 seconds.
Scopes and claims
Ask only for what you need: the user sees every requested item before approving.
| Scope | Claims | Notes |
|---|---|---|
openid |
sub, acr |
Always required. sub is pairwise per brand; acr is the assurance level. |
age |
age_over_13, age_over_16, age_over_18, age_over_21 |
Booleans, all four together; the birth date is never sent. Omitted when the document has no usable birth date. |
profile |
given_name, family_name |
The user sees this request before approving. |
nationality |
nationality |
ISO 3166-1 alpha-3, as on the document. |
personhood |
nullifier |
Needs the eq_context authorization parameter. |
sub: one pseudonym per identity and brand
The same identity gets the same sub in every client of your brand (web, app share a brand_id), and a different, unlinkable one at any other brand. It never changes for that identity. An identity is bound to one document: if the person enrols again with another document (a renewed passport, a second nationality), that is a new identity and a new sub — plan for it like a user who opens a second account. You never receive a document number, the Equalitus identity id or a wallet address.
nullifier: one action per person
Pass eq_context=<your-context> (1 to 128 characters of [A-Za-z0-9._:-]), for example contest-2026-11, with scope personhood; the scope without eq_context is refused. The nullifier is the same each time the same identity acts in that context for your brand, and differs between contexts and between brands. Store it and refuse a second action with the same value. The one-document limit of sub applies.
On request, a client is registered with public contexts (petitions, votes): each approval is also recorded on chain, where anyone can count and audit it, and the chain refuses a second action by the same identity; no code is issued unless the record landed. Create the context first, from an account linked to a live identity: personhoodActions.create_context(id, opens, closes, min_assurance) with id = SHA-256("EQ-CTX-v1" ‖ brand_id ‖ 0x00 ‖ eq_context). opens and closes are block numbers (about one block per minute); closes is optional and excluded. A refused action returns error=access_denied with the reason (already acted, context not found, not open, closed, insufficient assurance).
Assurance levels (acr)
The level is read from the chain at each approval. Levels are bit flags (1 = chip check, 2 = liveness), not a scale: document-chip and document-live are not comparable. A minimum is met when the identity has every check of the minimum.
acr | Level | Meaning |
|---|---|---|
urn:equalitus:acr:document |
0 |
The document chip's data is signed by its issuing state (passive authentication). The identity is bound to the passkey that enrolled it. |
urn:equalitus:acr:document-chip |
1 |
In addition, the chip proved it is not a copy (Chip or Active Authentication, run by Equalitus's server). |
urn:equalitus:acr:document-live |
2 |
In addition, a liveness check matched the holder's face to the chip photo. The liveness check is not offered yet. |
urn:equalitus:acr:document-chip-live |
3 |
Both. |
Belgian eID chips offer no clone detection, so their holders are at document (or later document-live) level. An age_over_N claim proves the document holder's age, not that the holder is the person at the screen: choose the level your legal obligations need.
Authorization and token requests
The page shows a QR code on a computer and an “Open in Equalitus” button on a phone. After approval in the app, the browser returns to your redirect_uri with code, state and iss.
Known limit: a QR login can be relayed (an attacker shows a victim a QR code from the attacker's own session). The app shows the requesting brand on every approval, and users should approve only logins they started. OpenID Connect login has no proximity binding. For an age check bound to the device in front of the user, use a wallet credential presented through the Digital Credentials API on Android — coming with the credential issuer.
GET https://auth.equalitus.com/oidc/authorize
?response_type=code
&client_id=shop-web
&redirect_uri=https%3A%2F%2Fshop.example%2Fcallback
&scope=openid%20age%20personhood
&state=…&nonce=…
&code_challenge=…&code_challenge_method=S256
&eq_context=contest-2026-11
POST https://auth.equalitus.com/oidc/token
Authorization: Basic base64(client_id:client_secret)
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code&code=…
&redirect_uri=…&code_verifier=…
→ {"access_token": "…", "token_type": "Bearer",
"expires_in": 300, "id_token": "eyJ…"}
Credentials, verifier kit and your obligations
Em breve Wallet credentials
Single-use credentials held in the user's app: a “verified human” SD-JWT VC (age thresholds, assurance, optional name and nationality) and the EU proof-of-age mdoc (age_over_18, only for adults at a level with the liveness check). Presented over OpenID4VP with DCQL, through the Digital Credentials API or a QR code, and checked against the Equalitus credential root: Equalitus does not see the presentation. No identifier links two credentials. External wallets only if on the European Commission's list of age-verification apps (none today). The issuer is off until its root CA ceremony.
Verifier kit
@equalitus/verifier (TypeScript, Node.js ≥ 22.12) checks SD-JWT VC and mdoc credentials, Semaphore v4 proofs and human-made content stamps without calling Equalitus. Licensed Apache-2.0 (the rest of Equalitus is GPL-3.0-or-later). Complete and tested, but not published to npm yet: ask us for it. The credential checks need the issuer; the Semaphore and stamp checks need a later network upgrade.
Your obligations
Don't try to link sub or nullifier values across brands, or to identify the person behind them. Tell your users that you use Equalitus and what you request.
Serial lookup API
The public stolen-goods register can be queried by anyone, without an account. You send a hash of the serial number, never the number itself; the answer is the status and its date, never the owner.
Normalise the serial first: Unicode NFKC, ASCII a–z to upper case (ASCII only), then remove every character outside [A-Z0-9]; 3 to 64 characters must remain. CORS is open (*, send no credentials); 60 lookups per minute per IP address, then 429; 400 for a malformed key, 503 when the chain is unreachable. Neither the key nor the IP is logged.
GET https://be.auth.equalitus.com/api/registry/<key>
key = hex( SHA-256( "EQ01-ASSET-V1" ‖ u8(class) ‖ ascii(serial) ) )
class: 0 Bike · 1 Scooter · 2 Phone · 3 Tool
status: 0 Ok · 1 Stolen · 2 Destroyed
→ {"found": false}
Example: class 0, serial WTU123456789
key = 6ffdc229161db33d1b76cb50d2303d3e
25c9a730cfc7d6954bc0d9dfe1329e6b
→ {"found": true, "class": 0, "status": 1,
"since": 412345, "sinceDate": "2026-11-02"}
Get a client
Clients are registered by Equalitus. Write to us with the details below and you receive a client_id, plus a secret for server-side apps.
- Your brand name and logo URL (shown in the app at every login).
- Your redirect URIs (exact match, no fragment), and whether you need public contexts.
- The scopes you need.
- Access requires an active monthly subscription. When it lapses, the authorization endpoint shows an error page and does not redirect back to you, and the token endpoint answers unauthorized_client.