Present a credential
This is the same web component that shops and kiosks embed. The events your page would receive appear next to it.
-
Get a credential
A student status credential from Opintotodiste, or a pension credential from the Kela demo issuer. The wallet guide lists suitable wallets.
-
Scan the code
Scan the QR code with your wallet app. On a phone whose browser supports the Digital Credentials API, choose Use a wallet on this device instead.
-
Approve in the wallet
The wallet shows which details will be shared. Only the claims the eligibility rule needs are requested.
-
See the result
The card turns green or red. In the event log,
verification-resultcarries the outcome.
Events
The demo starts its sessions from the kiosk endpoint, so it works only when kiosk.enabled is set. Your own pages start sessions from your backend: see Embed and integrate.
What the verifier checks
A credential is accepted only when every check passes. When one fails, the result says which one and why.
Trusted issuer
The issuer must have a valid OpenID Federation trust chain to a configured trust anchor, such as Findynet's findy.trustregistry.eu. Individual did:web issuers can also be trusted directly.
Issuer signature
The SD-JWT credential must be signed with a key that the issuer publishes in its trusted metadata. Every disclosed claim must match its digest.
Holder binding
The wallet signs this request's nonce with the key the credential is bound to. A copied credential cannot be replayed.
Validity
The credential must be valid now. A rule can also require a date claim, such as a student card's expiry_date, still to be in the future.
Eligibility rule
The disclosed claims must meet the rule for the credential type, for example Voimassa: true for a pension or enrolment_status: enrolled for a student.
Signed result
The verifier signs the outcome for your backend. Grant the discount from that result, never from the browser alone.