Credential Update
Credential update is offered as a closed preview feature and is not generally available yet. Its behavior may change in a way that breaks existing integrations before it becomes generally available. To enable it on your tenant, contact us.
Overview
Credential Update enables a holder to obtain a new version of a credential they already hold, without re-enrolling and without the user re-authenticating. The new credential is issued into the bundle the holder already has rather than into a new one, and the wallet replaces the copy it holds, so the holder ends up with a single, current credential.
This keeps credential data accurate as your system of record changes, lets you extend MSO validity before a credential expires, and lets you manage the lifecycle of a credential you have already issued.
This is supported in MATTR VII's issuance capability alongside our Holder SDKs.
What this enables
- Keep credential data in sync with systems of record: Reissue a credential when the underlying data changes, so the holder is not carrying stale claims.
- Extend expiring MSOs: Force an update to issue a fresh MSO with a new validity period before the holder's current credential expires.
- Correct a credential without invalidating it: Remove or amend a single claim, such as a driving privilege, while the holder keeps a usable credential. See Revoking a driving privilege.
- Update without a new enrollment: The holder does not repeat the authentication or identity check they completed at first issuance.
- Updates the wallet can check for: A holder app that holds a refresh token can check for a new version of a credential whenever it chooses, and obtain it without the user re-authenticating or claiming a new offer.
Core concepts
The examples in this section follow one family. Alex keeps birth certificates in their wallet for themselves and their children, Sam and Riley. Later, Sam's certificate needs a name correction.
Credential reference
A credential reference is "this user's credential of this type", no matter which device it
is on. For example, "Alex's copy of Sam's birth certificate". Its identifier is
credentialReferenceId.
A credential reference is unique to a user, a credential type (doctype) and, if one was
used, a claim set identifier. It stays the same across every device the credential is claimed
on, and every time the credential is updated. When a user holds several credentials of the same type, such as one birth
certificate per child, each is issued against its own
claim set identifier, and each
gets its own credential reference.
Credential bundle
A credential bundle is one credential as it sits in one wallet. It is created when a wallet claims the credential, and it is tied to:
- The issuance session and the credential offer that started it (if applicable)
- The wallet instance that claimed it (identified by wallet ID and instance ID)
- The credential configuration used for issuance
- The claim set identifier it was issued for, if any. Credentials claimed together for different claim sets get separate bundles
If Alex installs the wallet on a phone and a tablet, Sam's certificate has one credential
reference and two bundles. Its identifier is credentialBundleId.
A bundle is the unit you target when you update a credential. Updating Sam's certificate on the phone leaves the copy on the tablet untouched.
A bundle is also the unit you withdraw. Unlinking a bundle revokes the credentials it holds and takes it out of service, and unlinking the credential reference does that to every bundle under it. See Unlinking.
Relationship hierarchy
Each bundle holds one or more credential instances, the signed credentials themselves.
When you update a credential, MATTR VII issues a new instance into the same bundle, and the
bundle keeps its credentialBundleId.
In the diagram below, Alex holds certificates for Sam and Riley, so there are two credential references. Sam's certificate is on Alex's phone and tablet, so it has two bundles. The copy on the phone has been updated once, so its bundle holds two instances.
claimSetId is your own value. MATTR VII generates credentialReferenceId and
credentialBundleId, and they never contain your record number.
Each identifier has its own job:
| Identifier | Answers | Use it to |
|---|---|---|
credentialReferenceId | "Which credential is this?" | Link a credential to your own record, or find every copy of it. A wallet app can compare it to remove duplicate copies |
credentialBundleId | "Which copy is this?" | Update or unlink one copy without touching the others |
Credential version
The credential version is a hash that MATTR VII calculates from a credential's claims each time it issues an mDoc. It is returned to the wallet as credential_data_set_id on the credential response, and MATTR VII records it against the credential bundle as the bundle's latest version, together with the date that version was issued. The hash does not reveal the claims it was calculated from.
A wallet that holds a refresh token sends the version it holds when it checks for an update. MATTR VII compares it against the bundle's latest version, and only issues when an update is due. An update is due when any of the following is true:
- An update was requested: You forced an update or created a pre-authorized update offer for the bundle after its latest version was issued.
- The wallet holds an older version: The version the wallet sent is not the bundle's latest version, for example because an earlier update did not reach the wallet.
- The claims have changed: The claims check interval has passed, and when MATTR VII resolves the credential's claims again, the recalculated version differs from the one the wallet holds. The interval is set with
refreshPolicy.credentialClaimsCheckIntervalon the credential configuration, and defaults to 7 days. See Claims check interval.
Time passing alone never makes an update due. When the claims have not changed, the wallet keeps the credential it holds, including its validity period. To issue a credential with a new validity period, or to deliver a change without waiting for the interval, force an update.
Terms shared with claim sets
Credential references and bundles are also used by Claim sets, which let one user hold several credentials of the same type. You can update credentials without using claim sets. Two claim set terms come up when you update such a credential:
- Claim set identifier: Your own record number for one credential, such as
BC-1002for Sam's certificate. Each bundle issued for a claim set carries it asclaimSetId, so you can find the bundle to update. See Claim set identifier. - Credential identifier: The value the wallet uses to request one specific credential when an offer contains several. See Credential identifier.
Update mechanisms
MATTR VII supports two mechanisms for updating a credential a holder already has. They differ in how the holder app obtains an access token, and in who decides when the update happens. Both end the same way: the wallet presents an access token to the Credential endpoint, and MATTR VII issues the new credential into the existing bundle.
- Refresh token: The holder app silently obtains a new access token for a credential it already holds, and requests the credential again. The holder app decides when to check, and MATTR VII decides whether an update is due.
- Pre-authorized offer: Your backend creates a pre-authorized credential offer that targets an existing credential bundle, the same way it does for a first issuance. When the wallet claims that offer, the newly issued credential replaces the credential in that bundle instead of creating a new one. Your backend decides when to update, and it works whether or not the wallet holds a refresh token.
Forced and conditional updates
An update is either forced, meaning a new credential is always issued, or conditional, meaning a new credential is only issued when an update is due. How you get each behavior depends on the mechanism.
| Forced | Conditional | |
|---|---|---|
| Refresh token | The wallet requests the credential without sending credential_data_set_id. You can also force the next conditional check to issue by forcing an update from your backend. | The wallet sends the credential_data_set_id it holds. MATTR VII returns 204 No Content unless an update is due. See Credential version. |
| Pre-authorized offer | The default. Creating an offer against a bundle marks the bundle as requiring an update, so the wallet receives a new credential when it claims the offer. | Handled by your backend. MATTR VII does not compare versions when you create the offer, so evaluate the condition against your own system of record and create the offer only when an update is warranted. See Deciding when to update. |
With refresh tokens, a wallet that checks regularly receives changed claims within one claims check interval, and receives a new credential as soon as you force an update for it. Forcing an update is also how you issue a fresh MSO with a later expiry date when the claims have not changed. Between those points, checks return 204 No Content and nothing is issued.
Managing updates
Credential references, credential bundles and forced updates are only available via the MATTR VII API for now. Support in the MATTR Portal is coming in a later release.
To create a pre-authorized update offer you need the credentialBundleId of the bundle you are targeting. If you did not persist it at first issuance, resolve it through the API.
Listing credential references
Retrieve all credential references for a user to see which credentials they have been issued:
GET /v1/users/{userId}/credential-referencesRetrieving credential bundles
Retrieve all credential bundles for a credential reference. Each bundle in the response carries its credentialBundleId:
GET /v1/users/credential-references/{credentialReferenceId}/credential-bundlesRetrieving a single credential bundle
Retrieve one bundle, including the credential instances inside it:
GET /v1/users/credential-bundles/{credentialBundleId}Finding a bundle by claim set
If the credential was issued against a claim set identifier, each bundle carries the claimSetId it was issued for, and you can search bundles across the tenant by that identifier:
POST /v1/users/credential-bundles/searchSee Find credentials by claim set.
Forcing credential updates
Mark a credential as requiring an update when you know its data has changed and want holders to receive the new version on their next check, without waiting for the claims check interval. You can also force an update to issue a fresh MSO with a new validity period before the current one expires. Force an update for one bundle, or for every active bundle held against a credential reference:
POST /v1/users/credential-bundles/{credentialBundleId}/updatePOST /v1/users/credential-references/{credentialReferenceId}/updateForcing an update does not notify the wallet or issue anything by itself. The next time the wallet checks for an update with its refresh token, MATTR VII issues a new credential instead of responding with 204 No Content.
See the API reference for the full request and response detail.
Triggering updates
The trigger depends on how the update is delivered.
Refresh token updates are started by the holder app, which decides when to check. For example:
- On user request: The user taps a button to refresh a credential.
- On a schedule: The app checks on launch or periodically.
- On a signal from your backend: When your system of record changes, you force an update and send your app a push notification through your own infrastructure, so it checks straight away.
These options all depend on the wallet holding a refresh token for the credential. MATTR VII does not contact the wallet.
Pre-authorized offer updates are started by the issuer. You decide when an update is due, for example when a credential is approaching the end of its validity period, or when your system of record reports a change to the data behind it. Because the update is carried by an ordinary credential offer, you share the resulting offer URI with the holder exactly as you would for a first issuance.
Considerations
Wallet implementation
For refresh token updates, the wallet stores the refresh token and the credential_data_set_id of each credential, and decides when to check for updates. The MATTR Holder SDKs do this for you. See Credential update in the holding documentation.
Credential data
- The updated credential is built the same way as it is at initial issuance: from the claims supplied with the update, any claims persisted against the user, and any configured claims source. A credential configuration that allows refresh tokens uses persisted claims and the claims source only. See Credential data.
- Validity dates come from the credential configuration and are applied at issuance, so every updated credential carries a new validity period. A conditional update does not issue when the claims are unchanged, so force an update before a credential expires when you want the holder to receive a fresh validity period.
- The credential that the update supersedes is not revoked automatically. It remains valid until it expires. If the older credential must stop being accepted, revoke it explicitly. This requires the credential to have been issued as revocable, so see Revocation for what that involves.
Privacy and security
- Claiming an update requires a valid access token, maintaining the same authorization model as initial credential issuance.
- The
credential_data_set_idis a hash and does not reveal the credential's claims. - Choose a
credentialClaimsCheckIntervalthat balances how quickly claim changes reach the wallet against load on your claims source. - MATTR VII confirms that the wallet claiming the update is the wallet instance the bundle is bound to, so an update offer cannot be redirected to a different device.
How would you rate this page?
Last updated on