Skip to main content

Verifiable Credentials for Secure IoT M2M Identity (2026)

The supplied Didit documentation describes ES256-signed authentication JWTs and JWKS, rather than a documented W3C credential issuance flow.

Verifiable Credentials for Secure IoT M2M Identity (2026)

Contents

In this guide

Jump to the part you need.

This guide fits teams that already verify people or businesses and need machines to prove who they act for. It maps the three-party credential pattern onto Didit authentication tokens: ES256-signed JWTs checked against a published JWKS, rather than a documented W3C credential issuance flow. Published backing-check prices range from $0.10 for Google Wallet to $0.95 for iDIN full identification. The main caveat: the documented token examples are authentication responses, not device credentials.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Verifiable credentials for IoT M2M identity, at a glance
ItemWhat it isDidit detail
TokenAn ES256-signed JWT carrying the verified claims you selectedSigned per application with P-256 keys; every token names its key in the kid header
IssuerYour Didit application, which is its own OpenID Connect issuerhttps://<name>.auth.didit.me, or the sandbox host, or your own custom domain once active
VerifierYour backend or edge gatewayFetches the JWKS, verifies offline, caches keys by kid for 5 minutes
Backing checkThe evidence behind the claimLiveness $0.10, full ID $0.33, Google Wallet $0.10, iDIN full identification $0.95
Key rotationEvery 30 daysNext key published one day before it signs, previous key kept one day after
Free partsNo chargeDiscovery and JWKS calls, Reusable KYC, Workflow Orchestrator, MCP server, unlimited sandbox
CaveatAuthentication tokens, not device credentialsThe supplied docs describe ES256-signed JWTs, JWKS and step-up checks

Start free in the sandbox at business.didit.me, no sales call and no setup fee. For developers, connect Didit to an AI assistant through the MCP server. Product details are on the business verification page; current rates are on the pricing page.

A verifiable credential is a three-party pattern: an issuer signs claims, a holder presents them, a verifier checks the signature. Verifiers can do that check without calling the issuer on every request, which is exactly the property an IoT fleet needs. A gateway should not need a round trip to a vendor on every request to know whether a robot may release a payment.

On Didit the three parties map like this. Your application is the issuer. The application or gateway that presents the access token is the holder, presenting it on behalf of the accountable person or business. Your backend or gateway is the verifier, and the signature is ES256 over a JWT whose public key sits in your application's JWKS. The claims are the ones you selected during verification, such as over_18 or a verified name. They never include documents or photos.

A standards-based W3C Verifiable Credential has a defined data model: an issuer signs claims, a holder presents them, and a verifier checks them. Didit's documented flow issues OpenID Connect authentication tokens instead. Those tokens are ES256-signed JWTs carrying selected claims, verified against your application's JWKS. The three-party shape is the same, but the token is an authentication response, not a W3C credential.

So the recommended method is not to mint a W3C credential. It is: run a Didit check once for the person or business accountable for the machine, keep that session's tokens on your backend, verify the authentication token offline at the edge, and ask for a step-up before sensitive machine actions. The documented token, JWKS, step-up and verification prices are covered in the cited docs and public price list.

When this method is wrong: if you need a hardware-rooted device identity with a certificate chain, keep your device CA. Didit authentication tokens are claims about people and businesses, not device certificates. Run both, and let the device certificate prove the hardware while the Didit token proves who the hardware acts for.

Prerequisites

  • A Didit application. Create one in the sandbox at business.didit.me. Sandbox testing is free and unlimited.
  • DIDIT_AUTH_ISSUER set to your application's sign-in origin, with no trailing slash, and DIDIT_APPLICATION_ID set to the application ID. Tokens carry that ID as aud.
  • At least one redirect URL registered for the application. The redirect_uri you send must exactly match one of them.
  • A backend or gateway that can make HTTPS calls and cache a JSON document for 5 minutes.
  • A check to run, either with Didit's default workflow or with one of your own workflows that you pick for that check.
  • Someone on your team to decide the cases that land in review, if you route any of them to review.

The steps

  1. Fix the issuer in configuration. Each application is its own issuer. Live applications use https://<name>.auth.didit.me; sandbox applications use https://<name>.sandbox.auth.didit.me. Live and sandbox are separate issuers with separate keys, so keep them in separate environment variables. Your publishable key encodes the issuer: after pk_live_ or pk_test_ it is the issuer in unpadded base64url.
  2. Read the discovery document once per deployment. This tells your gateway where to get keys and where tokens come from.
    curl --fail-with-body "${DIDIT_AUTH_ISSUER}/.well-known/openid-configuration"
    curl --fail-with-body "${DIDIT_AUTH_ISSUER}/.well-known/jwks.json"
  3. Cache the JWKS by kid, not by URL alone. Both documents answer Cache-Control: public, max-age=300, so 5 minutes is the documented cache window. New key IDs start with k_. When a token names a kid you do not hold, fetch the JWKS again, at most once a minute, and reject the token if the key is still missing.
  4. Pick the check that fits the machine action. The assurance tiers describe different evidence, not a strength ranking.
    Checks you can put behind a machine action, at list price
    CheckWhat it establishesPrice at list
    LivenessA real person is present, from one selfie$0.10
    Selfie loginThe same person Didit already holds a face for$0.10
    Full IDDocument, liveness and face match in one check$0.33
    Google WalletA wallet-held ID pass from a supported issuer$0.10
    Smart-IDSigned attributes from a bank or national eID$0.21
    iDIN full identificationA Netherlands bank identity$0.95
    EUDI WalletPublished rate, not yet in production$0.15, coming soon

    Published wallet rates do not establish production availability. Check the live price feed and docs for the wallet's status; a method marked coming soon cannot be enabled in production. The table marks EUDI Wallet as coming soon for that reason.

  5. Exchange the authorization code for tokens. The callback receives code and state. Check state, then exchange the code within 60 seconds. Each code works once, and PKCE uses S256 only. The response is an authentication token response.
    curl --fail-with-body "${DIDIT_AUTH_ISSUER}/token/" \
      -H 'Content-Type: application/json' \
      -d '{
        "grant_type": "authorization_code",
        "code": "CODE_FROM_CALLBACK",
        "code_verifier": "YOUR_PKCE_VERIFIER",
        "redirect_uri": "https://app.example.com/auth/callback"
      }'
  6. Verify the token wherever the machine decision is made. Accept ES256 only. Read the kid from the token header, look the key up in your cached JWKS, and check the signature, iss, aud and expiry. The token response reports expires_in as the seconds the access token has left, for example 299. Nothing on the machine needs your verification API key, and nothing on the machine should hold it.
  7. Ask for a step-up before a sensitive machine action. The documented step-up actions are payout, bank and contact. A payout also applies the device rule, so a payout from a session on a device the person has never used is always checked.
    curl --fail-with-body "${DIDIT_AUTH_ISSUER}/step-up/" \
      -H "Authorization: Bearer $ACCESS_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{"action": "payout", "amount": "900.00", "currency": "USD", "return_to": "https://app.example.com/payouts/confirm"}'
    A 200 with {"required": false} means no rule applies and you continue. A 201 carries a verification_url that stays open for 30 minutes (expires_in: 1800).
  8. Read the result on your backend, never from the return query. The person returns to return_to with step_up=<id>&status=approved added, and that query proves nothing. Call GET {issuer}/step-up/{step_up_id}/ with an access token from the same session and act only when status is approved.
  9. Fail closed and log the decision. When verification is unavailable, the action stays blocked. Record the verification result and step-up status according to your own audit requirements.
A session detail showing an ID document check in the Didit Business Console
The console shows the session and its checks. Your gateway verifies the token signature and claims against the JWKS.

Expected output

The discovery document, with your host filled in, has this shape:

{
  "issuer": "https://your-app.sandbox.auth.didit.me",
  "authorization_endpoint": "https://your-app.sandbox.auth.didit.me/sign-in",
  "token_endpoint": "https://your-app.sandbox.auth.didit.me/token/",
  "jwks_uri": "https://your-app.sandbox.auth.didit.me/.well-known/jwks.json"
}

The JWKS is a keys array. Each key has a kid, and every token names the key that signed it in the kid header:

{"keys": [{"kid": "k_...", "alg": "ES256", "crv": "P-256"}]}

The token exchange answers with an authentication token set and the session it belongs to:

{
  "access_token": "eyJhbGciOiJFUzI1NiIs...",
  "id_token": "eyJhbGciOiJFUzI1NiIs...",
  "refresh_token": "N4yZTl6y24YKYq77X_SO...",
  "token_type": "Bearer",
  "expires_in": 299,
  "session_id": "c9abf6cc-2d64-4bf2-b31e-a4d09a070ab1"
}
A face scanning step during a Didit verification
Liveness and face match are part of a full ID check at $0.33; selfie login alone is $0.10.

Failure cases and recovery

What breaks, what you see, and what to do
SituationWhat you seeRecovery
Token names a key you do not holdUnknown kid on verificationFetch the JWKS again, at most once a minute. If the key is still missing, reject the token.
Didit revokes a compromised keyKey disappears from the JWKS at once and GET /session/ rejects every token it signedA replacement key starts signing immediately. A JWKS cached up to 5 minutes earlier still accepts the revoked key, so refresh early after a security notice.
You activate a custom domainAccess tokens issued under the default host fail GET /session/Update DIDIT_AUTH_ISSUER, or accept both issuers until older tokens expire, within 5 minutes.
Code reused, expired or mismatched400 {"error": "invalid_grant"}Start a new sign-in. Check that redirect_uri still exactly matches a registered URL and that the verifier matches the challenge.
Step-up window passedStatus expiredCreate a new step-up. The 30 minutes are not extendable.
Another check took overStatus supersededCreate a new step-up and ignore the earlier result.
Person did not passStatus declinedNot final while verification_url still works. They can try again and the step-up returns to pending.
Shared session token reused403, already shared with your applicationMint a new share token. Each token redeems once per receiving application.

A step-up never fails open: when verification is unavailable, the action stays blocked.

Inputs and outputs

What each call takes and returns
CallInputOutput
DiscoveryDIDIT_AUTH_ISSUERissuer, authorization_endpoint, token_endpoint, jwks_uri
JWKSDIDIT_AUTH_ISSUERKeys array, each with a kid, cacheable for 5 minutes
Verification checkApplication API key and a workflow or the default workflowA session billed at that check's list price
Token exchangecode, code_verifier, redirect_uriaccess_token, id_token, refresh_token, session_id, expires_in
Offline verifyThe JWT and your cached JWKSAccept or reject on signature, iss, aud, expiry
Step-up requestAccess token, action, amount, currency, return_to200 with required: false, or 201 with verification_url
Step-up readAccess token and step_up_idpending, approved, review, declined, expired or superseded

Billing is per completed check from prepaid credit. Paid here: the backing check at $0.10 for liveness or selfie login, $0.33 for a full ID check, and digital ID wallet checks from $0.10 to $0.95. Business verification is priced by country and data tier from $2.00 per company, with linked KYC at $0.33 and person AML at $0.20 per person. Plan credit is added monthly, does not roll over, and Growth and Scale discounts apply to Didit prices. See the business verification product page and the pricing page for current rates.

What does not cost money: discovery and JWKS calls, sandbox testing, Reusable KYC, the Workflow Orchestrator, the MCP server, and the first 50,000 authentication active users each month. The Free plan adds $10.00 of monthly credit for organizations that sign up with a work email, which is about 30 full ID checks a month at $0.33 (10 divided by 0.33 is 30.3).

Review boundaries are yours. A step-up status of review means the check waits for your team, and you decide. A declined is not final while the verification_url still works. Didit shows the session, its warnings and its checks in the console. Your team decides how to handle a step-up in review or declined status.

Reusing a finished verification across sites

A fleet operator who verified once should not verify again at every site. Section 3 of the Reusable KYC docs covers that: the source application mints a share token for a finished session, and the receiving application redeems it with its own API key.

curl -X POST 'https://verification.didit.me/v3/session/SESSION_ID/share/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"for_application_id": "RECEIVING_APP_ID", "ttl_in_seconds": 7200}'

The receiving side calls POST https://verification.didit.me/v3/session/import-shared/ with share_token, trust_review and a workflow_id that exists on its own application. Set trust_review to true to keep the source status, or false to force the clone into review so your reviewers re-decide. The cloned session gets a fresh session_id and keeps shared_from_session pointing at the source for audit. Reusable KYC is free; the checks inside the reused session are not re-billed because they are not re-run.

A walkthrough of what users see during a Didit verification
A person completes the check once; reuse shares the finished session with another application.

Worked cost example

An operator with 8,000 field engineers who authorise machine payouts, and 40,000 payout step-ups a year, at list prices:

  • Onboarding with full ID: 8,000 x $0.33 = $2,640.00.
  • Step-ups with selfie login: 40,000 x $0.10 = $4,000.00.
  • Total list price: $2,640.00 + $4,000.00 = $6,640.00 a year.
  • Discovery, JWKS calls and Reusable KYC reuse: $0.00.

Now compare plans, assuming usage is spread evenly across the year and monthly credit is fully used. Unused monthly credit expires, and top-ups last 12 months.

Annual cost at list, Growth and Scale for 8,000 full ID checks and 40,000 selfie logins
PlanUsage after discountPlan fee and creditOut of pocket
Free8,000 x $0.33 = $2,640.00; 40,000 x $0.10 = $4,000.00; total $6,640.00$0.00 fee; $10.00 x 12 = $120.00 credit$6,640.00 - $120.00 = $6,520.00
Growth, monthly billing8,000 x $0.3168 = $2,534.40; 40,000 x $0.096 = $3,840.00; total $6,374.40$99.00 x 12 = $1,188.00 fee; $115.00 x 12 = $1,380.00 credit$1,188.00 + ($6,374.40 - $1,380.00) = $6,182.40
Growth, yearly up front$6,374.40$1,128.00 fee; $1,380.00 credit$1,128.00 + ($6,374.40 - $1,380.00) = $6,122.40
Scale, monthly billing8,000 x $0.297 = $2,376.00; 40,000 x $0.09 = $3,600.00; total $5,976.00$299.00 x 12 = $3,588.00 fee; $350.00 x 12 = $4,200.00 credit$3,588.00 + ($5,976.00 - $4,200.00) = $5,364.00
Scale, yearly up front$5,976.00$3,408.00 fee; $4,200.00 credit$3,408.00 + ($5,976.00 - $4,200.00) = $5,184.00

At this volume Scale is the lowest total, $5,364.00 on monthly billing or $5,184.00 paid up front, against $6,520.00 on Free. Check the current numbers on the pricing page before you commit. The plan credit is monthly and does not roll over, so uneven usage can raise the top-up.

Sources

Next step: open the sandbox at https://business.didit.me/, create an application, and call the discovery endpoint above to see your own issuer and JWKS. No sales call is needed, and sandbox checks are not billed.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

What are verifiable credentials for IoT M2M identity?

They are signed claims about the entity behind a machine, presented by the machine and checked by the service it talks to. The verifier checks a cryptographic signature instead of trusting a shared secret or calling a central server on every request. At minimum the claim answers who is accountable for the device and what it may do.

Can I use Didit to issue W3C Verifiable Credentials to IoT devices?

The supplied Didit documentation describes ES256-signed JWTs and JWKS, rather than a documented W3C credential issuance flow. Those JWTs can carry verified claims and can be checked offline by your gateway. If you need standards-based W3C Verifiable Credentials, treat that as a separate layer from the Didit authentication token.

How does a device or gateway verify a Didit token without calling the API?

It fetches {issuer}/.well-known/jwks.json, caches the keys by kid for the documented 5 minutes, and checks the ES256 signature plus iss, aud and expiry. When a token names a kid it does not hold, it refetches the JWKS at most once a minute and rejects the token if the key is still missing. No API key is needed on the machine.

How much does an M2M identity check cost on Didit?

Liveness costs $0.10, selfie login costs $0.10, and a full ID check costs $0.33 at list price. Digital ID wallet checks run from $0.10 for Google Wallet to $0.95 for iDIN full identification, with Smart-ID and Mobile-ID at $0.21. Discovery and JWKS calls are free, and sandbox testing is free and unlimited.

What happens when Didit rotates its signing keys?

Keys rotate every 30 days. Didit publishes the next key one day before it starts signing and keeps the previous key published for one day after it stops, so a JWKS cached for 5 minutes keeps verifying across a rotation. If Didit revokes a compromised key, it removes the key immediately and the replacement starts signing without that day of notice.

What is the difference between a digital ID wallet check and a document check?

A wallet check returns attributes that an identity provider already signed, and the result carries the cryptographic assurance tier. A document check reads an identity document and adds passive liveness and face match. They describe different evidence, not more or less of the same thing, and a wallet without a portrait includes no selfie comparison.

How do I bind a machine action to a verified business instead of a person?

Run business verification, which starts at $2.00 per company and is priced by country and data tier, then link owners and officers as full ID checks at $0.33 each with person AML at $0.20. Business verification supplies verified business and person results; the documented token flow for authentication is the person's Didit Authentication JWT, verified by your gateway against the JWKS. See the business verification product page.

Does Didit replace my device certificate authority?

The supplied documentation describes signed JWTs, JWKS and step-up checks. It does not describe X.509 device certificates or an on-device secure element. Keep your device CA for hardware identity if you need one, and use Didit for the verified claim about the person or business the device acts for.

What happens if verification is unavailable when a device asks for a step-up?

The action stays blocked. A step-up never fails open, and the documented statuses give you a clear branch: pending, approved, review, declined, expired or superseded. Only approved lets the action continue.

How do I test this without spending money?

Create a sandbox application at business.didit.me. Sandbox testing is free and unlimited. Sandbox and live use separate issuers and keys. Test the documented discovery and JWKS flow in the sandbox before production. The Free plan also adds $10.00 of monthly credit for organizations that sign up with a work email.

Can a coding assistant set this up for me?

Yes. The Didit MCP server is free and runs at https://mcp.didit.me/mcp with OAuth sign-in, and there is a published integration prompt that takes an agent from zero to a working integration. Review the issuer, JWKS caching and fail-closed behaviour it produces before you ship.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.