| Status | Draft. |
| Version | 0.1.0, 2026-11-28 |
| Profile of | OpenID 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 on | OCI-0 Core, OCI-1 Trust Registry |
| Used by | OCI-5 Consent Receipt (every release produces a receipt) |
| Reference implementation | packages/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:
- The RP states a purpose, and may only ask for the claims that purpose allows.
- The resident consents to each claim, and the IdP releases nothing outside the consented set.
- A derived claim (
age_over_18) is used in place of the raw attribute (birthdate) wherever the purpose allows it. - 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_providertrust 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_partytrust 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_partytrust 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_detailsMUST be a non-empty JSON array. Each entry MUST be an object with a stringtype(RFC 9396 §2). The KYC type ishttps://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
typeit 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 publishtrust_frameworks_supportedandclaims_in_verified_claims_supported(OIDC4IDA §8), andevidence_supportedwhen it can release evidence.
3.1 KYC entry members
| Member | Required | Meaning |
|---|---|---|
type | yes | https://oci.world/rar/kyc |
purpose | yes | Identifier of a purpose in the RP’s policy (OCI extension) |
claims | yes | Object: claim name to null or { "essential": boolean } |
verification | no | Restrictions 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:
| Member | Form | Source |
|---|---|---|
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
purposeMUST 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
purposeis 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
verificationMUST be refused if it has an unknown member, an unsupportedtrust_framework, anassurance_level.minoutside the OCI levels, or amax_agethat is not a positive integer. - KYC-4.5
verification.evidenceMUST 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 (
birthdatetoage_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:
| Claim | Type | Meaning |
|---|---|---|
age_over_NN (NN is 1 to 150) | boolean | The 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_claimsMUST 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_claimsobject has the membersverificationandclaims(OIDC4IDA §5.1, Schema §5.2). If nothing is released, or the verification does not meet the request (wrongtrust_framework,assurance_levelbelowmin,timeolder thanmax_age), the IdP MUST omitverified_claimsand MUST NOT return an error (OIDC4IDA §5.7.3, §5.7.4). - KYC-6.3
verification.trust_frameworkis required (Schema §5.4.2). OCI also requiresassurance_levelandtime.timeMUST be an ISO 8601 UTC date-time that ends inZ. - KYC-6.4
verification.evidenceMUST be omitted unless the request asked for it and the purpose allows it. When released, an evidence entry MUST contain onlytypeandcheck_details(each with onlycheck_method,organizationandtime). It MUST NOT containderived_claims,document_details,recordor 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), withalgECDH-ESon a P-256 key,encA256GCMandctyJWT(CORE-5.8; OCI-3 narrowsenctoA256GCM). An RP that asks forverification.evidenceSHOULD register a key. - KYC-6.6 The token response MUST carry
authorization_details(RFC 9396 §7) holding the KYC entry withclaimsreduced to the names the resident granted. - KYC-6.7 The
subin 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_claimswhoseverification.assurance_levelis 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 withassurance_exceeds_provider). If the chain proves no LoA, noassurance_levelmay be asserted. This differs from KYC-6.2: there the IdP omitsverified_claimsbecause 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_detailsMUST only be accepted in the pushed request. - KYC-7.3 PKCE with
S256MUST 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
issin 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 valueslow,substantialandhighas 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, optionalpurposeDescription,claims(the released claim names, never their values),legalBasis(consent),givenAtandexpiresAt. These input names map to the OCI-5 receipt claimspurpose_description,legal_basis,iatandexp; withdrawal and status use the receipt’sjtiasreceipt_id(CR-6.1).@oci/kycexports this shape asReceiptInputand does not import@oci/consent;@oci/consentaccepts 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_receiptin 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_NNin place ofbirthdateis recorded with the derived names, so the receipt shows what the RP actually got.
9. Security and privacy considerations
- Request tampering.
authorization_detailscarries 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
subvalues 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_agelets an RP refuse old checks. The IdP omitsverified_claimsif 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
purposeas an opaque identifier from a policy. OCI-6 APP-4.10 maps a manifestpurpose_idto the OCI-3purposeURI. How an IdP fetches the policy is still open. - Age claim names.
age_over_NNfollows mdoc. If OIDF registers an age claim for OIDC4IDA, OCI should move to it. - Assurance level restriction.
assurance_level.minis an OCI extension. Should OCI ask OIDF for a standard way to say “at least”? - Trust framework identifiers.
oci_xvstyle values are not in any registry. OIDF keeps a predefined-values page; registering them is undecided. - Authentication level. KYC-7.10 takes the minimum
acrfrom 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_obligationorpublic_task(a court order, a tax authority) need their own rules for notice and receipts. - Nested claims. Requests such as
address.countryare not supported. The IDA claimaddressis all or nothing. - UserInfo-only. Should an ID Token profile be allowed for flows with no back channel?
Changes
| Version | Date | What changed |
|---|---|---|
| 0.1.0 | 2026-11-28 | First versioned release: the text of Draft 0.1 (2026-11-18). |