| Status | Draft. |
| Version | 0.1.0, 2026-11-28 |
| Profile of | OpenID Federation 1.0 (Final, February 2026) |
| Depends on | OCI-0 Core |
| Reference implementation | packages/trust (@oci/trust) |
1. Purpose
OCI-1 answers one question for any service in any country: “Can I trust this entity, for what, and at what assurance level?”
It reuses OpenID Federation 1.0 for all the mechanics: signed entity statements, trust chains, metadata policy, constraints and trust marks. OCI-1 adds only what a country needs on top:
- A fixed topology: one trust anchor per country, with ministries and agencies as intermediates.
- OCI roles and assurance levels, carried as trust marks.
- Cross-country recognition with an assurance cap.
- Tighter limits on lifetimes and algorithms, and rules that make fetching safe.
An entity that conforms to OCI-1 is a valid OpenID Federation entity. Any compliant OpenID Federation implementation can follow an OCI chain, with one exception: a cross-country recognition statement marks oci_assurance_cap as critical (§6). An implementation that does not understand it rejects that chain, which is the safe outcome.
2. Topology
Country trust anchor (e.g. https://trust.tavora.example, XT)
│ │ └── recognises → foreign trust anchor (§6)
Ministry of Interior Ministry of Finance
│ │ │
Registrar Identity provider Tax relying party
- TR-2.1 Each country MUST run exactly one OCI trust anchor. Its entity configuration MUST include
metadata.federation_entity.oci_country, set to the country’s code (CORE-3.2). - TR-2.2 A chain from a leaf entity to its own country’s trust anchor MUST NOT contain more than 3 subordinate statements. Verifiers MUST give up after 5 subordinate statements on any chain, including cross-country chains.
- TR-2.3 Trust anchors and intermediates MUST publish
federation_fetch_endpointandfederation_list_endpoint. They SHOULD publishfederation_resolve_endpoint. - TR-2.4 An entity’s country is attested by its superiors, never by the entity itself. It is the
metadata.federation_entity.oci_countryin the nearest subordinate statement that sets one, or else the trust anchor’s country. If the leaf’s own entity configuration declares a differentoci_country, verifiers MUST reject the chain (country_mismatch). OCI extension.
3. Statements
All statements follow OpenID Federation 1.0 §3, with these narrower rules:
- TR-3.1 Entity statements MUST use
typ: entity-statement+jwt. Trust marks MUST usetyp: trust-mark+jwt. - TR-3.2 Algorithms are those in CORE-5.1. Verifiers MUST reject any other.
- TR-3.3 Every entity statement MUST carry
iss,sub,iat,expand a non-emptyjwks. - TR-3.4
exp - iatMUST NOT exceed 7 days. It SHOULD NOT exceed 24 hours for subordinate statements, so that removing a statement revokes trust within a day. - TR-3.5 Entities MUST use the entity types defined by OpenID Federation and the protocols OCI profiles (
federation_entity,openid_provider,openid_relying_party,oauth_authorization_server,oauth_resource, and a credential issuer type, which OpenID4VCI 1.0 does not define; see §10). OCI defines no new entity types. OCI roles are trust marks (§4). - TR-3.6 Trust marks delegated through
trust_mark_ownersare out of scope for 0.1 and MUST NOT be relied on.
4. Roles and assurance as trust marks
OCI roles and levels of assurance are trust marks with these trust_mark_type values:
trust_mark_type | Meaning |
|---|---|
https://oci.world/tm/role/registrar | Holds a foundational identity register |
https://oci.world/tm/role/identity_provider | May authenticate residents (OCI-2, OCI-3) |
https://oci.world/tm/role/credential_issuer | May issue credentials (OCI-4) |
https://oci.world/tm/role/wallet_provider | Supplies a certified wallet |
https://oci.world/tm/role/relying_party | Registered consumer of identity data |
https://oci.world/tm/role/enrolment_centre | May capture enrolment data |
https://oci.world/tm/role/trust_mark_issuer | Accredited to issue OCI trust marks |
https://oci.world/tm/role/signal_transmitter | May send security signals (OCI-7) |
https://oci.world/tm/role/data_user | May read a person’s data from a data holder with their consent (OCI-CONSENT-1) |
https://oci.world/tm/role/data_holder | Holds data about people and serves it with their consent (OCI-CONSENT-1) |
https://oci.world/tm/role/consent_manager | May collect consent for data holders and relay encrypted data it cannot read (OCI-CONSENT-1) |
https://oci.world/tm/loa/low, /substantial, /high | The highest assurance level the entity is certified to operate at (CORE-4) |
- TR-4.1 A trust mark MUST carry
iss,sub,trust_mark_type,iatandexp. OpenID Federation makesexpoptional; OCI requires it. - TR-4.2 The trust anchor’s entity configuration MUST list every accepted issuer for each OCI trust mark type in
trust_mark_issuers. Verifiers MUST reject an OCI trust mark whose issuer is not listed. - TR-4.3 The trust mark issuer MUST itself resolve to the same trust anchor (or be the trust anchor). Its signature is checked with the keys that its own trust chain proves.
- TR-4.4 An entity MUST NOT issue a trust mark about itself.
- TR-4.5 An invalid trust mark MUST be ignored. It MUST NOT make the trust chain itself fail.
- TR-4.6 An entity’s assurance level is the highest valid
loatrust mark, lowered to any assurance cap in its chain (§6). - TR-4.7 A trust mark issuer’s own chain caps the marks it issues: an
loamark is lowered to any assurance cap in the issuer’s chain, then to any cap in the subject’s chain. A mark is only checked against the trust anchor the subject resolved to. OCI extension. - TR-4.8 An entity whose OCI protocol keys are not covered by a standard metadata type (for example a credential issuer or signal transmitter) MUST publish them as a JWK Set in
metadata.federation_entity.oci_jwks. OpenID Federation does not allowjwksinfederation_entitymetadata. Verifiers MUST take these keys only from resolved metadata, after policy. OCI extension. - TR-4.9 The marks
data_user,data_holderandconsent_managerare the roles of OCI-CONSENT-1 (CDA-3). They are issued and checked like every other OCI role mark (TR-4.1 to TR-4.5): by an issuer the trust anchor lists for that type (TR-4.2), usually the regulator of the entity’s sector, never by the entity itself. OCI-CONSENT-1 says which marks each party MUST hold (CDA-3.1, CDA-3.4). OCI extension. - TR-4.10 A
data_usertrust mark MAY carry the claimoci_cda_categories: a non-empty array of at most 64 unique data category identifiers, each matching^[a-z][a-z0-9_]{0,63}$(CDA-15.1). It lists the data categories the data user is accredited for (CDA-3.3). A regulator that accredits a whole data family lists that family’s categories. Adata_usermark whoseoci_cda_categoriesdoes not have this form is invalid (TR-4.5). Verifiers MUST ignoreoci_cda_categorieson every other mark type. OCI extension. - TR-4.11 A verifier MUST give the caller the
oci_cda_categoriesof each validdata_usermark (§8). An entity’s accredited categories are the union of those lists. If any validdata_usermark has nooci_cda_categories, OCI-1 sets no category limit for the entity. Enforcing the limit is the data holder’s job (CDA-6.6, CDA-10.4).
5. Metadata policy and constraints
- TR-5.1 Verifiers MUST apply the standard metadata policy operators
value,add,default,one_of,subset_of,superset_ofandessential, combining them from the trust anchor downward. A conflict when combining MUST fail the chain. - TR-5.2 Verifiers MUST enforce
max_path_length,naming_constraintsandallowed_entity_types. Entity types outsideallowed_entity_typesare removed from the resolved metadata. - TR-5.3 A trust anchor SHOULD set
naming_constraintson each intermediate, limiting it to its own domain. - TR-5.4 A policy operator listed in
metadata_policy_critthat the verifier does not understand MUST fail the chain. An unlisted unknown operator is ignored.
6. Cross-country recognition
Country A recognises country B by having A’s trust anchor issue a subordinate statement about B’s trust anchor. B’s trust anchor then lists A’s trust anchor in its authority_hints. Relying parties in A keep pinning only A’s trust anchor.
- TR-6.1 A recognition statement MUST set
constraints.allowed_entity_typesandconstraints.naming_constraints, and it SHOULD setconstraints.max_path_length. It MUST setmetadata.federation_entity.oci_countryto the recognised country’s code (TR-2.4). - TR-6.2 A recognition statement MAY set
oci_assurance_captolow,substantialorhigh. When set, it MUST be listed incrit. Every assurance level resolved through that statement is lowered to the cap. - TR-6.3 To recognise country B’s assurance trust marks, A’s trust anchor MUST list B’s issuers in its own
trust_mark_issuers(TR-4.2). A recognition statement does not do this on its own. - TR-6.4 To withdraw recognition, A stops serving the recognition statement. Trust ends no later than the statement’s
exp(TR-3.4).
7. Fetching safely
Trust chain resolution fetches URLs that other parties supply, which is a server-side request forgery (SSRF) risk.
- TR-7.1 Fetchers MUST only request
httpsURLs. They MUST refuse IP-literal hosts,localhost, and URLs carrying credentials, unless explicitly configured for local testing. - TR-7.2 Fetchers MUST NOT follow redirects. They MUST time out within 10 seconds and MUST refuse responses larger than 64 KiB.
- TR-7.3 Deployments SHOULD block requests that resolve to private, loopback or link-local addresses at the network layer.
- TR-7.4 Fetchers MUST check the response’s content type:
application/entity-statement+jwtfor entity configurations and subordinate statements. - TR-7.5 Resolved chains MAY be cached, but no longer than the earliest
expin the chain, in the issuer chains of accepted trust marks, and in the accepted trust marks themselves. - TR-7.6 Fetchers MUST also refuse single-label hosts, the suffixes
.local,.localhost,.internal,.home.arpa,.lan,.intranetand.localdomain, and any port other than 443. They SHOULD resolve the host and refuse private, loopback, link-local, shared and documentation addresses before connecting. Error messages MUST NOT echo network error text. - TR-7.7 Verifiers MUST cap the work one resolution can cause: at most 8
authority_hintsper entity, at most 20 trust marks checked per entity, and at most 64 fetches in total. Responses MUST be read as a stream and abandoned once the size limit is passed. - TR-7.8 Statements whose claims have the wrong JSON type, or that use the keys
__proto__,constructororprototypeinmetadataormetadata_policy, MUST be rejected (invalid_claims). OCI extension.
8. Resolution result
A conforming verifier gives the caller:
- the trust anchor that was used, and the chain of statements;
- the resolved metadata, after policy and constraints;
- the verified trust marks, with the
oci_cda_categoriesof eachdata_usermark (TR-4.11), and the reasons any were rejected; - the OCI view: the entity’s country, the trust anchor’s country, its roles, its assurance level and any cap;
- the chain’s expiry (the earliest
exp).
9. Conformance
The reference implementation’s tests cite these clause IDs. An implementation conforms to OCI-1 0.1 when it passes every test in packages/trust/test that is tagged with a TR clause, and the OpenID Foundation’s federation tests where they apply.
10. Open questions
- Should a country publish a signed “recognition register” document (a list of every country it recognises), in addition to the statements themselves?
- How should trust marks be revoked: by a trust mark status endpoint, or by short lifetimes only (the 0.1 approach)?
- OpenID4VCI 1.0 (checked 2026-11-18) defines no federation entity type for credential issuers. Until a federation profile for wallets defines one, OCI-4 issuers publish
federation_entityplus an OCI role trust mark.
Changes
| Version | Date | What changed |
|---|---|---|
| 0.1.0 | 2026-11-28 | First versioned release: the text of Draft 0.1 (2026-11-18). For OCI-CONSENT-1: the role marks data_user, data_holder and consent_manager, and a data user’s accredited categories in oci_cda_categories (TR-4.9 to TR-4.11). |