Overview
Learn how the Holder SDK authenticates verifiers, what verifier identity and authorization data the Holder SDK exposes when a verifier authenticates its request, how the SDK processes it, and how your wallet can use it to inform the user.
Open preview
Verifier identity and authorization is offered as an open preview in the iOS Holder SDK 7.0.0 and the Android Holder SDK 8.0.0. The data structures described on this page can change before the feature is generally available.
What is verifier authentication?
When a verifier asks for credential data, the user needs to know who is asking and whether that verifier is allowed to ask for it. Verifier authentication answers the first part: the verifier signs its request, and the Holder SDK checks that the signature chains to a verifier certificate your wallet trusts. The SDK reports the outcome for every request as trusted, untrusted or unsigned, for in-person, remote and Digital Credentials API presentations alike.
Reader or verifier?
ISO/IEC 18013-5 calls the party that requests data an mdoc reader, and the mechanism mdoc
reader authentication (clause 12.5). MATTR uses verifier for the same role, because it
matches the organization your users see. On MATTR Learn, verifier authentication and reader
authentication mean the same thing. Names defined by the standards, such as ReaderAuth, keep their
original form.
Verifier identity and authorization
A trusted result tells you which trusted root the request chained to, but a root certificate's common name is rarely something a user recognizes.
Verifier identity and authorization adds two kinds of information to a trusted request:
- Identity metadata: Who the relying party is, in a form your wallet can show to the user. This includes a display name, a logo and a link to a privacy policy.
- Authorization: What the relying party is permitted to ask for. This includes the purposes it is authorized to claim and the data elements it is authorized to request, together with whether it is authorized to keep each element after the interaction.
Both travel inside the verifier's certificates, so your wallet reads them from the request itself
without contacting any other service. A user approaching a bar that checks their age might see "Harbor
Street Bar" with its logo, and your wallet can confirm that the bar is authorized to request
age_over_18 but not the user's address.
How it works
The verifier's certificate chain carries the data. The verifier signs its request with a signer certificate (the leaf certificate), which chains through an optional intermediate CA certificate to a verifier root CA certificate. Your wallet distributes and trusts the root, and the request carries the rest of the chain.
When a signed request arrives, the SDK:
- Validates the certificate chain against the trusted verifier certificates stored on the device, and verifies the request signature. See Trusted verifiers.
- If the request is trusted, reads the identity metadata from the leaf certificate only.
- Reads the authorization from every certificate in the chain that carries it, and reports the effective authorization: only what every one of those certificates permits.
- Reports the result to your wallet in a
VerifierInfovalue, alongside the existing verifier authentication result.
Authorization cascades down the chain. Each certificate can only narrow what the certificate above it authorizes, never widen it. If a leaf certificate claims a purpose or data element that its intermediate does not authorize, the SDK leaves it out of the effective authorization. A certificate that carries no authorization extension places no limit of its own, so the certificates that do carry it decide the result. If no certificate in the chain carries it, the chain sets no limit and the SDK reports no authorization at all. See Effective authorization across the chain.
Identity metadata and authorization are only reported for a trusted request. An untrusted or
unsigned request carries no VerifierInfo, because the SDK cannot establish that the data comes from
the verifier it claims to describe.
The data is carried in two non-critical X.509 certificate extensions:
| Extension | Object identifier | Contents |
|---|---|---|
| Verifier identity metadata | 1.3.6.1.4.1.61546.101 | Application identifier, display name, logo and privacy policy URI |
| Verifier authorization | 1.3.6.1.4.1.61546.102 | Authorized purposes and authorized data elements |
Both are CBOR-encoded. A certificate can carry either, both or neither. If an extension cannot be decoded, the SDK leaves that field empty and still reports the request as trusted, because the signature and certificate chain are valid.
MATTR VII adds these extensions to the verifier signer certificates it issues, based on the identity metadata and authorization the verifier configures on its verifier application. Verifiers using other certificate authorities can carry the same extensions. The RICAL overview describes how a Digital Trust Service operator publishes the same kind of relying party information for its participants.
Identity metadata
Identity metadata describes the relying party as it should be shown to the user. It is read from the verifier signer certificate (the leaf certificate) only.
| Field | Description |
|---|---|
displayName | The relying party's name as it should be shown to the user, for example "Harbor Street Bar". |
logo.logoUri | An HTTPS URI from which your wallet can retrieve the relying party's logo. |
logo.logoHash | Optional. The SHA-256 digest of the logo image bytes. When present, your wallet can check that the image it retrieved is the one the certificate refers to. |
privacyPolicyUri | Optional. A link to the relying party's privacy policy. |
applicationId | Optional. An identifier for the verifier application that made the request, assigned by the verifier's MATTR VII tenant. |
Every field is optional in the SDK, so your wallet should handle each one being absent. When the
certificate carries no identity metadata at all, identityMetadata is nil on iOS and null on
Android.
The certificate carries the logo by reference rather than the image itself. To show it, your wallet
retrieves the image from logoUri. Two things follow from this:
- Retrieving the logo makes a network request to a host the relying party controls, which can reveal to that host that a user is being asked to share data. Consider whether your wallet should retrieve logos automatically, cache them, or only retrieve them once the user has chosen to continue.
- During an in-person presentation the device may have no network connection, so the logo may not be available. Design your consent screen so it reads correctly with the display name alone.
Authorization
Authorization describes what the relying party is permitted to ask for. The verifier's certificate authority asserts it, rather than the verifier itself, so it stays the same for every request signed with that certificate.
Authorized purposes
An authorized purpose states why the relying party is allowed to request data. Each purpose is a purpose code, an integer, grouped under a purpose controller, a reverse domain name that identifies who defines what each code means. A code is only meaningful together with its controller.
For example, the draft second edition of ISO/IEC 18013-5 (ISO/IEC DIS 18013-5, clause 10.2.5) defines
three purpose codes under the controller org.iso.jtc1.sc17:
| Code | Purpose |
|---|---|
1 | Identity verification |
2 | Driving privilege verification |
3 | Age verification |
A car rental company might be authorized for codes 1 and 2, and a bar for code 3 only. Other
controllers, such as a trust network operator, can define their own codes. These purpose codes come
from a draft standard and can change before it is published.
The SDK reports authorized purposes as a map from purpose controller to the list of codes the relying party may claim.
Authorized elements
Authorized elements name the individual data elements the relying party is allowed to request. Each element is addressed by its document type, namespace and element identifier, and carries an optional retention flag:
| Retention value | Meaning |
|---|---|
true | The relying party is authorized to keep the element after the interaction. |
false | The relying party is authorized to request the element but not to keep it. |
nil or null | The certificate does not say whether the relying party may keep the element. |
Two shortcuts keep the list short:
- A document type with no namespaces authorizes every element of that document type.
- A namespace with no elements authorizes every element in that namespace.
Retention is not stated for elements authorized through either shortcut.
Absent versus empty
The SDK distinguishes between authorization that is absent and authorization that is empty:
authorizationisnilornullwhen no certificate in the chain carries the authorization extension. The certificate authority has made no statement about what the relying party may ask for.authorizedPurposesorauthorizedElementsisnilornullwhen the chain makes no statement about that kind of authorization.- An empty map of purposes authorizes no purpose, and an empty list of document types authorizes no data elements.
Effective authorization across the chain
Authorization can be carried by more than one certificate in the chain. For example, a trust network operator can authorize a group of relying parties for identity and age verification on an intermediate certificate, and each relying party's signer certificate can narrow that down further. The SDK reports the effective authorization: a purpose or element is included only if every certificate in the chain that carries authorization permits it. A certificate cannot authorize more than the certificates above it, so an operator can rely on its intermediate certificate to cap what every relying party below it can claim. Certificates without the authorization extension are skipped rather than treated as authorizing nothing. Signer certificates issued by MATTR VII carry authorization on the leaf certificate only, so for those requests the effective authorization is the leaf certificate's.
The SDK reports authorization but does not enforce it
The SDK does not compare a request against the authorization it reports, and does not reject a request that asks for more than the relying party is authorized for. Your wallet decides what to do. See Handling verifier authentication results for common approaches.
Where the data appears
The same VerifierInfo value is reported for every presentation channel. Where your wallet reads it
depends on the channel:
| Channel | Where to read it |
|---|---|
| In-person (ISO/IEC 18013-5) | MobileCredentialRequest.verifierAuthenticationResult, one per requested document. A trusted result carries VerifierInfo. |
| Remote (OpenID4VP) | OnlinePresentationSession.verifiedBy. A request verified by a trusted certificate carries VerifierInfo. A request verified by its domain carries no identity metadata or authorization. |
| Digital Credentials API on iOS | DCPresentationSession.verifierAuthenticationResult, one result for the whole request. A trusted result carries VerifierInfo. |
| Digital Credentials API on Android | MobileCredentialRequest.verifierAuthenticationResult, one per requested document. |
VerifierInfo contains:
| Property | Description |
|---|---|
commonName | The Common Name (CN) of the trusted verifier certificate the request chained to. |
trustedVerifierCertificateId | The identifier of that trusted certificate in the SDK's store. |
identityMetadata | The relying party's identity metadata, or nil/null when absent. |
authorization | The effective authorization, or nil/null when absent. |
Next steps
- Handling verifier authentication results: Decide whether to accept, flag or reject a request based on these values.
- Handling verifier authentication (in person): Add trusted verifier certificates and inspect the result of a proximity presentation.
- Handling verifier authentication (remote): Add trusted verifier certificates and inspect the result of a remote presentation.
How would you rate this page?
Last updated on