Skip to content

Verifier Configuration Reference

Every setting the credential verification service accepts. server.json holds the settings of the server. The settings of its tenant — the verifier itself, with its signing key, client metadata and issuer trust anchors — are kept in its database: you give them when you create the tenant through the admin endpoints. A minimal setup is in Install the verification service. See Settings for what is read when.

Server settings

server.json
{
  "port": 8081, // (1)!
  "baseUrl": "http://localhost:8081", // (2)!
  "database": { // (3)!
    "persistenceUnitName": "model",
    "driver": "org.postgresql.Driver",
    "url": "jdbc:postgresql://postgres:5432/verifier",
    "user": "postgres",
    "password": "postgres"
  },
  "admin": { // (4)!
    "apiKeys": {
      "Rw6X1Wc0rJm3lPpQ8nK2vYtZb7HsUaE4dFgL9oNiMcxBqT5yVhGjSzReAuIkDw0e": "Operations team"
    }
  },
  "metrics": { // (5)!
    "scrapeTokens": {
      "Q2sx3xVwz9oRMSk1UQBnkZMIJQ7bbEz8T6vdYJkTB3CvYaL4bMyTfrUZzcXfGl8x": "Prometheus"
    }
  }
}
  1. Required. REST endpoint port.
  2. Required. The address this service advertises to wallets, used for the authorization request and the presentation submission. Must be reachable by the wallet — see Going to production.
  3. Required. PostgreSQL connection. See Database.
  4. Required. The keys of the admin endpoints, which create the tenant and manage it. The JSON key is the token, the value a label.
  5. Optional. Turns on the Prometheus endpoint GET /metrics, which a scrape reaches with one of these tokens. Omit it and /metrics answers 404. The JSON key is the token, the value a label. See Metrics.

A misspelled setting stops the service

An unrecognized key in server.json fails the start, and is named in the error, so a typo surfaces immediately rather than silently doing nothing.

Tenant settings

The body of POST /admin/tenants, which creates the tenant. Keys and certificates are PEM text, shortened here:

POST /admin/tenants
{
  "code": "example", // (1)!
  "client_name": "Example Organisation", // (2)!
  "signing": { // (3)!
    "private_key": "-----BEGIN PRIVATE KEY-----\n…\n-----END PRIVATE KEY-----\n",
    "certificate_chain": [
      "-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----\n",
      "-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----\n"
    ]
  },
  "alt_id_signing": { // (4)!
    "private_key": "-----BEGIN PRIVATE KEY-----\n…\n-----END PRIVATE KEY-----\n",
    "certificate_chain": [
      "-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----\n",
      "-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----\n",
      "-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----\n"
    ]
  },
  "issuer_trust_anchors": { // (5)!
    "example-root": "-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----\n"
  },
  "verifier_info": [ // (6)!
    {
      "format": "dktb-rpr+jwt",
      "data": "eyJ4NWMiOlsiTUlJQjZqQ0NBWStnQXdJQkFnSVFFTW5RT2FnOGh1Sld0YzVuNjZMamFEQUtCZ2dxaGtqT1BRUURBakJXTVFzd0..."
    }
  ],
  "session_callback": { // (7)!
    "target_url": "https://example-application.com/verified-claims",
    "bearer_token": "<a secret your application checks>"
  }
}
  1. Required. The tenant's code, which names it in the paths of the admin endpoints. Lower-case letters, digits and -, starting with a letter or a digit.
  2. Optional. The name of this verifier, shown to the holder during consent. See Client metadata.
  3. Required. The signing key and the certificate chain, leaf first, as PEM text. This certificate determines the verifier's identity: its hash is the OID4VP client_id. See Signing certificates.
  4. Optional. A separate signing key and certificate chain, leaf first, used for authorization requests that ask for an mdoc credential. Falls back to signing when absent. Needed to verify credentials from AltID, which requires an RSA certificate where the rest of the service uses EC.
  5. Required, but may be empty. The root certificates used for PKIX path validation, deciding which issuers this verifier accepts, each under a name of your choosing. A credential, SD-JWT or mdoc, is rejected unless its certificate chain leads to one of these roots — so with none, every credential is rejected. Add, replace and remove them by name through the admin endpoints afterwards. See Issuer trust anchors.
  6. Optional. The verifier info list to include in authorization requests. See verifier_info.
  7. Optional. Where verification results are pushed. See Receive verified data.

A new tenant has no API keys and no logo. Add them through the admin endpoints: API keys and Logo.

Client metadata

These values improve the holder's experience by giving the wallet something meaningful to show on the consent screen, instead of an opaque identifier. Both are optional.

  • The name is client_name in the tenant's settings.
  • The logo is a PNG or JPEG image of at most 512 KB, set with PUT /admin/tenants/{code}/logo. The format is checked by the image's content. Use a square image, ideally 256 × 256 px or larger so it stays sharp on high-density screens. Wallets fetch it from {baseUrl}/static/logo/{logo_id}, which every authorization request names as client_metadata.logo_uri.