← Specifications

OCI-3 KYC

Version 0.1.0 · 2026-11-28 · Draft Changes
StatusDraft.
Version0.1.0, 2026-11-28
Profile ofOpenID Connect for Identity Assurance 1.0 (Final, errata set 1, 1 July 2026) with the Identity Assurance Schema 1.0 and the Claims Registration 1.0; RFC 9396 (Rich Authorization Requests); FAPI 2.0 Security Profile (Final)
Depends onOCI-0 Core, OCI-1 Trust Registry
Used byOCI-5 Consent Receipt (every release produces a receipt)
Reference implementationpackages/kyc (@oci/kyc)

1. Purpose

A relying party (RP) often needs to know something about a resident: that they are an adult, or their name and address. OCI-3 lets the identity provider (IdP) answer with verified claims, under four rules:

  1. The RP states a purpose, and may only ask for the claims that purpose allows.
  2. The resident consents to each claim, and the IdP releases nothing outside the consented set.
  3. A derived claim (age_over_18) is used in place of the raw attribute (birthdate) wherever the purpose allows it.
  4. Every release leaves an OCI-5 receipt that the resident keeps.

OCI-3 adds no new endpoints. It is OpenID Connect with Identity Assurance, a Rich Authorization Request that carries the purpose, and the FAPI 2.0 security profile. OCI writes its own rules only for the purpose-bound request type, data minimisation, and the link to receipts.

2. Roles and flow

  • IdP. An entity with the https://oci.world/tm/role/identity_provider trust mark (TR-4). It holds the resident’s attributes and the verification facts for them.
  • RP. An entity with the https://oci.world/tm/role/relying_party trust mark. It is the data controller in the receipt.
  • Resident. The person the claims are about.
RP                              IdP                              Resident
 |-- PAR: authorization_details -->|                                   |
 |<-- request_uri -----------------|                                   |
 |-- authorization request ------->|-- authenticate, show purpose ---->|
 |                                 |<-- consent to chosen claims ------|
 |                                 |-- issue receipt (OCI-5)           |
 |<-- code (+ iss) ----------------|                                   |
 |-- token request (DPoP) -------->|                                   |
 |<-- tokens, authorization_details (granted), consent_receipt --------|
 |-- userinfo request ------------>|-- check receipt status            |
 |<-- signed (and encrypted) verified_claims                           |
  • KYC-2.1 The IdP MUST verify the RP’s trust chain and relying_party trust mark through OCI-1 before it accepts a request from it.
  • KYC-2.2 The IdP MUST hold a purpose policy for each RP (the purposes it may use and the claims each allows). Where the policy comes from (the RP’s registration or its OCI-6 manifest) is outside OCI-3.

3. The request

The request uses a pushed authorization request (RFC 9126), with authorization_details (RFC 9396 §2) in the pushed body.

  • KYC-3.1 authorization_details MUST be a non-empty JSON array. Each entry MUST be an object with a string type (RFC 9396 §2). The KYC type is https://oci.world/rar/kyc (OCI extension; RFC 9396 §2.1 recommends a collision-resistant URL).
  • KYC-3.2 The IdP MUST refuse an entry whose type it does not support (RFC 9396 §5). In 0.1 the only supported type is the KYC type.
  • KYC-3.3 A request MUST contain exactly one KYC entry. (OCI extension: one receipt covers one entry.)
  • KYC-3.4 The IdP MUST refuse an entry with a member that this section does not define (RFC 9396 §5). In particular OCI-3 does not use the common field locations.
  • KYC-3.5 Every failure above, and every failure in §4, MUST be returned as invalid_authorization_details (RFC 9396 §5, §14.6). The error description MUST NOT repeat request content (CORE-9.1).
  • KYC-3.6 The IdP’s metadata MUST list the KYC type in authorization_details_types_supported (RFC 9396 §10). It MUST also publish trust_frameworks_supported and claims_in_verified_claims_supported (OIDC4IDA §8), and evidence_supported when it can release evidence.

3.1 KYC entry members

MemberRequiredMeaning
typeyeshttps://oci.world/rar/kyc
purposeyesIdentifier of a purpose in the RP’s policy (OCI extension)
claimsyesObject: claim name to null or { "essential": boolean }
verificationnoRestrictions on the verification, in the style of OIDC4IDA §5.3

claims is a flat object of top-level claim names. The null form means “requested” (OIDC4IDA §5.3). essential follows OIDC Core §5.5.1. Nested requests such as address.country are not supported in 0.1.

verification members, all optional:

MemberFormSource
trust_framework{ "value": "oci_xv" }OIDC4IDA §5.5.1
assurance_level{ "min": "substantial" }OCI extension. OIDC4IDA §5.5.1 defines only exact value/values; a minimum fits OCI-0’s ordered levels (CORE-4.1).
time{ "max_age": 86400 }OIDC4IDA §5.5.2 (seconds)
evidence[ { "type": { "value": "electronic_record" } } ]OIDC4IDA §5.4, evidence types from the Schema §5.4.4.1

The trust_framework value for an OCI country is oci_ plus the lowercase country code (CORE-3.2), for example oci_xv. OIDC4IDA §12 defines no identifiers, so this is an OCI extension. assurance_level values are the OCI levels low, substantial and high (CORE-4).

4. Purpose and allowed claims

  • KYC-4.1 The request MUST state a purpose (CORE-7.1). A missing, blank or unregistered purpose MUST be refused.
  • KYC-4.2 The consent screen MUST show the IdP’s own description of the purpose from the policy. It MUST NOT show text supplied by the RP. This is why purpose is an identifier and not a sentence.
  • KYC-4.3 Every requested claim MUST be both supported by the IdP and allowed for that purpose. The IdP MUST refuse the whole request if any claim is not, and MUST NOT silently drop it.
  • KYC-4.4 verification MUST be refused if it has an unknown member, an unsupported trust_framework, an assurance_level.min outside the OCI levels, or a max_age that is not a positive integer.
  • KYC-4.5 verification.evidence MUST be refused unless the purpose allows evidence.

5. Data minimisation

  • KYC-5.1 The IdP MUST release no claim outside the set the resident consented to. A claim that was consented to but not requested, or requested but not allowed, MUST NOT be released.
  • KYC-5.2 Where a purpose lists a derived claim for a raw claim (birthdate to age_over_18), the IdP MUST offer the derived claim on the consent screen and MUST NOT release the raw claim. The derived value MUST be computed by the IdP; the raw value is not sent.
  • KYC-5.3 A claim the IdP does not hold, or cannot compute, MUST be omitted without error (OIDC4IDA §5.7.2).
  • KYC-5.4 The resident MUST be able to decline any claim that is not essential. Declined claims are omitted (OIDC4IDA §5.7.3).
  • KYC-5.5 Logs MUST NOT contain claim values (CORE-7.3).

5.1 Derived claims

OIDC4IDA 1.0 and its Claims Registration define no age-threshold claim. OCI uses the claim names that ISO/IEC 18013-5 mdoc documents use, so OCI-4 and OCI-3 agree:

ClaimTypeMeaning
age_over_NN (NN is 1 to 150)booleanThe resident is at least NN years old on the release date. Computed in UTC from birthdate (YYYY-MM-DD).

This is an OCI extension. The IdP MUST list each age_over_NN it supports in claims_in_verified_claims_supported. An unparsable birthdate makes the claim unavailable (KYC-5.3).

6. The response

  • KYC-6.1 verified_claims MUST be returned from the UserInfo endpoint, and MUST NOT be put in the ID Token. (OCI extension: ID Tokens travel through browsers, logs and caches; UserInfo is a back-channel call from the RP.)
  • KYC-6.2 The verified_claims object has the members verification and claims (OIDC4IDA §5.1, Schema §5.2). If nothing is released, or the verification does not meet the request (wrong trust_framework, assurance_level below min, time older than max_age), the IdP MUST omit verified_claims and MUST NOT return an error (OIDC4IDA §5.7.3, §5.7.4).
  • KYC-6.3 verification.trust_framework is required (Schema §5.4.2). OCI also requires assurance_level and time. time MUST be an ISO 8601 UTC date-time that ends in Z.
  • KYC-6.4 verification.evidence MUST be omitted unless the request asked for it and the purpose allows it. When released, an evidence entry MUST contain only type and check_details (each with only check_method, organization and time). It MUST NOT contain derived_claims, document_details, record or any document number.
  • KYC-6.5 The UserInfo response MUST be a signed JWT (application/jwt, OIDC Core §5.3.2) using a CORE-5.1 algorithm. If the RP has registered an encryption key, the IdP MUST encrypt the response: sign first, then encrypt (OIDC Core §10.2), with alg ECDH-ES on a P-256 key, enc A256GCM and cty JWT (CORE-5.8; OCI-3 narrows enc to A256GCM). An RP that asks for verification.evidence SHOULD register a key.
  • KYC-6.6 The token response MUST carry authorization_details (RFC 9396 §7) holding the KYC entry with claims reduced to the names the resident granted.
  • KYC-6.7 The sub in every response MUST be a pairwise identifier (OIDC Core §8.1). It MUST be the same value that the receipt carries (CR-3.3).
  • KYC-6.8 (OCI extension) The IdP MUST NOT return verified_claims whose verification.assurance_level is higher than the LoA the IdP’s own OCI-1 chain proves (TR-4.6). The IdP MUST NOT build such a response (the reference library refuses with assurance_exceeds_provider). If the chain proves no LoA, no assurance_level may be asserted. This differs from KYC-6.2: there the IdP omits verified_claims because the verification misses the request; here the IdP’s own configuration is wrong, so building the response is an error.

6.1 Worked example

Request (inside the PAR body, shown decoded):

[
  {
    "type": "https://oci.world/rar/kyc",
    "purpose": "https://bank.home.example/purposes/open_account",
    "claims": {
      "given_name": null,
      "family_name": null,
      "birthdate": { "essential": true }
    },
    "verification": {
      "trust_framework": { "value": "oci_xv" },
      "assurance_level": { "min": "substantial" },
      "time": { "max_age": 31536000 }
    }
  }
]

The policy for that purpose lists derivedFor: { "birthdate": "age_over_18" }. The consent screen shows the bank’s registered purpose text and three items: given name, family name, “over 18”. The resident declines family name. Token response excerpt:

{
  "authorization_details": [
    {
      "type": "https://oci.world/rar/kyc",
      "purpose": "https://bank.home.example/purposes/open_account",
      "claims": { "given_name": null, "age_over_18": null }
    }
  ],
  "consent_receipt": "<OCI-5 receipt, a compact JWS>"
}

Decoded UserInfo payload:

{
  "iss": "https://id.home.example",
  "sub": "Zq3vN8mK1xT5bYwR2cHdE7aLpUo9FgJs4iVtXnMkQ0A",
  "verified_claims": {
    "verification": {
      "trust_framework": "oci_xv",
      "assurance_level": "substantial",
      "time": "2026-11-01T08:30:00Z"
    },
    "claims": { "given_name": "Asha", "age_over_18": true }
  }
}

The raw birthdate and the declined family_name are absent.

7. FAPI 2.0 profile

The IdP acts as the authorization server and the RP as the client. OCI-3 adopts the FAPI 2.0 Security Profile and narrows it. These clauses are checked by the OpenID Foundation FAPI 2.0 conformance suite, not by @oci/kyc.

  • KYC-7.1 The IdP and RP MUST conform to the FAPI 2.0 Security Profile.
  • KYC-7.2 The IdP MUST require PAR with client authentication and MUST reject authorization requests that do not use it (FAPI 2.0 SP §5.3.2.2). authorization_details MUST only be accepted in the pushed request.
  • KYC-7.3 PKCE with S256 MUST be required (§5.3.2.2).
  • KYC-7.4 Access tokens MUST be sender-constrained with DPoP (RFC 9449) as OCI-2 requires (AUTH-7.5, AUTH-8). An IdP MAY also bind tokens with mutual TLS (RFC 8705) (§5.3.2.1).
  • KYC-7.5 Clients MUST authenticate with private_key_jwt (AUTH-6.1). Mutual TLS client authentication, which FAPI 2.0 also permits (§5.3.2.1), is not allowed in OCI 0.1. Only confidential clients are allowed.
  • KYC-7.6 Signatures MUST use ES256 or PS256 (CORE-5.1). EdDSA, which FAPI 2.0 permits, is not allowed in OCI 0.1.
  • KYC-7.7 The IdP MUST return iss in authorization responses (RFC 9207) and the RP MUST check it (§5.3.2.2, §5.3.3.2).
  • KYC-7.8 An authorization code MUST NOT live longer than 60 seconds and MUST NOT be accepted twice (§5.3.2.1, §5.3.2.2).
  • KYC-7.9 An access token MUST NOT outlive the receipt it belongs to (CR-6). (OCI extension.)
  • KYC-7.10 The resident MUST have authenticated during this flow, at or above the level the purpose policy sets for the purpose (KYC-2.2). The level is the ID Token acr (AUTH-9.5), with values low, substantial and high as in CORE-4.1.

8. Receipts

  • KYC-8.1 Every release MUST produce an OCI-5 receipt. The input is sub, controller (the RP’s entity ID), purpose, optional purposeDescription, claims (the released claim names, never their values), legalBasis (consent), givenAt and expiresAt. These input names map to the OCI-5 receipt claims purpose_description, legal_basis, iat and exp; withdrawal and status use the receipt’s jti as receipt_id (CR-6.1). @oci/kyc exports this shape as ReceiptInput and does not import @oci/consent; @oci/consent accepts the same shape and its tests cover signing.
  • KYC-8.2 The receipt MUST be issued before any claim is released. If the receipt cannot be issued, the IdP MUST NOT release (fail closed).
  • KYC-8.3 The IdP MUST show or send the receipt to the resident, and MUST send it to the RP as consent_receipt in the token response (OCI extension).
  • KYC-8.4 Before each UserInfo response the IdP MUST check the receipt’s status. If it is withdrawn or expired, the IdP MUST refuse the request with invalid_token.
  • KYC-8.5 A release for a purpose that lists age_over_NN in place of birthdate is recorded with the derived names, so the receipt shows what the RP actually got.

9. Security and privacy considerations

  • Request tampering. authorization_details carries the purpose. FAPI 2.0 requires PAR, which protects it in transit and from the browser (RFC 9396 §11.4, §12).
  • Consent screen injection. The IdP shows only its own purpose text (KYC-4.2) and escapes claim names. RFC 9396 §12 requires the AS to sanitise request data.
  • Correlation. Pairwise sub values stop two RPs from joining their records (KYC-6.7). Derived claims and omitted evidence give them less to join on.
  • Over-asking. A request for a claim outside the purpose fails whole (KYC-4.3). A silent drop would hide the over-ask from the RP’s developers.
  • Stale consent. The IdP re-checks receipt status on every UserInfo call (KYC-8.4), so withdrawal takes effect at once.
  • Verification freshness. time.max_age lets an RP refuse old checks. The IdP omits verified_claims if the check is too old, so an RP that needs it MUST handle its absence (KYC-6.2).
  • Evidence leaks. Evidence is the most identifying part of verified_claims, so it is off by default and stripped to check metadata (KYC-6.4).

10. Conformance

The reference tests in packages/kyc/test cite these clauses: KYC-3.1 to 3.4, 4.1, 4.3 to 4.5, 5.1 to 5.3, 6.2 to 6.5, 8.1. KYC-3.5, 3.6, 5.4, 5.5, 6.1, 6.6, 6.7, 7.x, 8.2 to 8.5, 2.x and 4.2 are endpoint behaviour. They are checked by a conformance harness against a running IdP (planned) and by the OpenID Foundation FAPI 2.0 tests where they apply.

An implementation conforms to OCI-3 0.1 when it passes the tests for the clauses above, handles the endpoint clauses, and issues a valid OCI-5 receipt (CR-4 verifies it) for every release.

11. Open questions

  • Purpose registry. OCI-3 treats purpose as an opaque identifier from a policy. OCI-6 APP-4.10 maps a manifest purpose_id to the OCI-3 purpose URI. How an IdP fetches the policy is still open.
  • Age claim names. age_over_NN follows mdoc. If OIDF registers an age claim for OIDC4IDA, OCI should move to it.
  • Assurance level restriction. assurance_level.min is an OCI extension. Should OCI ask OIDF for a standard way to say “at least”?
  • Trust framework identifiers. oci_xv style values are not in any registry. OIDF keeps a predefined-values page; registering them is undecided.
  • Authentication level. KYC-7.10 takes the minimum acr from the purpose policy. Whether OCI-6 manifests should declare it per purpose is open.
  • Other legal bases. In 0.1 every release is consented. Releases under legal_obligation or public_task (a court order, a tax authority) need their own rules for notice and receipts.
  • Nested claims. Requests such as address.country are not supported. The IDA claim address is all or nothing.
  • UserInfo-only. Should an ID Token profile be allowed for flows with no back channel?

Changes

VersionDateWhat changed
0.1.02026-11-28First versioned release: the text of Draft 0.1 (2026-11-18).