Strong customer authentication quickstart

A user authorises a payment, a login, access to their payment account, or a mandate with the SCA attestation their own bank issued into their EUDI wallet. The wallet shows the user the exact transaction, the user approves it, and the wallet signs the transaction into its response together with the authentication factors it reports it applied. Built to the European Commission's TS12 v1.0.1, “Specification of Strong Customer Authentication (SCA) Implementation with the Wallet”. Same Nexiel Verify service and the same POST /v1/verify/sessions route as every other check type.

New to EUDI wallets? Read what an EU Digital Identity Wallet is, and how a session works before this page assumes you already know what OpenID4VP, DCQL, and SD-JWT VC mean.

How it works

  1. Your user's bank (their payment service provider) issues an SCA attestation into their wallet. Issuing it is the bank's step, not Nexiel's (TS12 §2.1).
  2. You start a session with an sca-* check type and the transaction, in the TS12 §4.3 format of that check type. Nexiel checks it against the TS12 schemas and signs it into the wallet request as OpenID4VP transaction_data.
  3. The wallet shows the user the transaction. The user approves it, and the wallet answers with the SCA attestation and a key-binding JWT that carries the hash of the transaction, a fresh authentication code (jti), and the authentication factors used (amr).
  4. Nexiel accepts the answer only when the attestation comes from a bank you trust, the hash matches the transaction you sent exactly, the authentication code has never been seen before, and the factors the wallet reports cover at least two of knowledge, possession, and inherence. The factors are the wallet's own report: Nexiel checks the signed list, not the wallet's hardware.
  5. You read the decision: the authentication code, the factors, and the hash that binds them to the transaction.

The request asks for the SCA attestation alone and no selectively disclosable claims. Possession of the attestation, proven by the same signature that covers the transaction, is the authentication.

Check types

  • sca-payment: Payment Confirmation (TS12 §4.3.1, urn:eudi:sca:payment:1). One payment, or a recurring payment, to a named payee.
  • sca-login: Login and Risk-based Authentication (TS12 §4.3.2, urn:eudi:sca:login_risk_transaction:1). A login, or an action that carries a risk of fraud, such as raising a transaction limit.
  • sca-account-access: Payment Account Information Access (TS12 §4.3.3, urn:eudi:sca:account_access:1). Access to payment account information, optionally through a named account information service provider.
  • sca-emandate: E-mandate (TS12 §4.3.4, urn:eudi:sca:emandate:1). A mandate for payee-initiated payments, such as a SEPA Direct Debit mandate.

Before you start: requesting access

Live access is gated. Each sca-* check type needs an active Nexiel Verify account and an approved entitlement for that check type. A signed-in member of your organization requests it from the dashboard's CheckType access page. A live request before approval fails with 403 checktype_entitlement_denied. The same grant covers your SCA attestation profiles: adding a production profile needs approval for every check type it serves, and listing them needs at least one. Disabling a profile needs none, so you can always stop trusting a bank. Test mode has no entitlement gate.

Trust your users' banks

An SCA attestation is only as good as the bank that issued it, so you tell Nexiel which banks' attestations you accept. Each SCA attestation profile names one attestation type (its vct), the transaction types the bank's type metadata lists for it (each mapped to its TS12 schema), and how the bank's issuer is trusted:

  • issuer_anchors: the attestation's x5c certificate chain must validate to one of the bank's CA certificates you supply.
  • own_issuer_keys: you are the bank, verifying the SCA attestations you issue yourself, so you pin your own issuer public keys.

Nothing is trusted by default. Without a profile for the check type, a live session fails closed with 409 sca_trust_not_configured. The financial sector has not yet published the SCA Attestation Rulebooks TS12 refers to, which will define standard attestation types, so each bank's type and transaction types are configured here, per bank.

curl -s -X POST https://compliance.nexiel.io/v1/verify/sca/attestation-profiles \
  -H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 4b1d0c2e-9f6a-4e7b-8c3d-2a1f0e9d8c7b" \
  -d '{
    "environment": "production",
    "label": "Example Bank",
    "vct": "https://bank.example/credentials/sca/payment-account",
    "transactionDataTypes": { "urn:eudi:sca:payment:1": "urn:eudi:sca:payment:1" },
    "trust": { "mode": "issuer_anchors", "anchorCertificatesPem": "-----BEGIN CERTIFICATE-----\n..." }
  }'

If the bank restricts its attestations to an audience (an aud claim, such as its own relying-party URL), list the values you accept in acceptedAudiences: an attestation whose aud names none of them is refused.

A production profile needs an approved KYB application and never accepts a Nexiel TEST certificate, key, or attestation type. Your registration certificate must also register the bank's attestation type: a wallet compares every request with what your registration certificate covers. List your profiles with GET /v1/verify/sca/attestation-profiles and stop trusting one at once with POST /v1/verify/sca/attestation-profiles/{profileId}/disable. A session that started with a profile you disable fails.

Create a session

Send the transaction as transactionData.payload, using TS12's own field names. Amounts are JSON numbers with no more fractional digits than the currency's ISO 4217 minor unit. An invalid payload is refused with 400 invalid_transaction_data, naming the field and the rule, before any session exists. transactionData.hashAlgorithms is optional and defaults to ["sha-256"].

curl -s -X POST https://compliance.nexiel.io/v1/verify/sessions \
  -H "Authorization: Bearer $NEXIEL_ACCESS_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "clientId": "docs-example-client",
    "checkType": "sca-payment",
    "transactionData": { "payload": {"transaction_id":"8D8AC610-566D-4EF0-9C22-186B2A5ED793","date_time":"2026-10-11T09:59:00+00:00","payee":{"name":"Merchant GmbH","id":"DE89370400440532013000","website":"https://merchant.example"},"currency":"EUR","amount":23.5} }
  }'
200
{
  "sessionId": "7d3c2b1a-0f9e-4d8c-b7a6-5e4d3c2b1a09",
  "templateVersion": "sca-payment@1",
  "livemode": false,
  "clientId": "x509_hash:Uvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk",
  "requestUri": "https://compliance.nexiel.io/v1/verify/sessions/7d3c2b1a-0f9e-4d8c-b7a6-5e4d3c2b1a09/request-object",
  "flow": "cross_device",
  "profile": "haip",
  "sessionToken": "Yq3nW0vR8tLx...(truncated, 43 chars)",
  "authorizationRequest": {
    "client_id": "x509_hash:Uvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk",
    "response_type": "vp_token",
    "response_mode": "direct_post.jwt",
    "response_uri": "https://compliance.nexiel.io/v1/verify/sessions/7d3c2b1a-0f9e-4d8c-b7a6-5e4d3c2b1a09/responses",
    "nonce": "Zx7c2Vb9kQ4wLm8NrT1pYf6sHd3jKa0eGuIoBz5vXcM",
    "state": "Hd4k8Jf1nP7qTy6Pz2QxWm3Rc9sLb5gVa0eKuNiYoT8",
    "dcql_query": {
      "credentials": [
        {
          "id": "sca_attestation",
          "format": "dc+sd-jwt",
          "meta": {
            "vct_values": [
              "https://bank.example/credentials/sca/payment-account"
            ]
          }
        }
      ]
    },
    "client_metadata": {
      "jwks": {
        "keys": [
          {
            "kty": "EC",
            "crv": "P-256",
            "x": "kqYdLbmVZ0n7...(truncated)",
            "y": "cU2k2Zp7z5oq...(truncated)",
            "kid": "6f1c2e0a-4b7d-4f8e-9a3c-2d1e0f9b8a7c",
            "use": "enc",
            "alg": "ECDH-ES"
          }
        ]
      },
      "encrypted_response_enc_values_supported": [
        "A128GCM",
        "A256GCM"
      ],
      "vp_formats_supported": "...(truncated)"
    },
    "verifier_info": [
      {
        "format": "registration_cert",
        "data": "eyJ0eXAiOiJyYy13cnArand0Ii...(truncated)"
      }
    ]
  },
  "authorizationRequestUri": "openid4vp://?client_id=x509_hash%3AUvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk&request_uri=https%3A%2F%2Fcompliance.nexiel.io%2Fv1%2Fverify%2Fsessions%2F7d3c2b1a-0f9e-4d8c-b7a6-5e4d3c2b1a09%2Frequest-object&request_uri_method=post",
  "dcApi": null,
  "expiresAt": "2026-10-11T10:09:00.000Z",
  "hostedUrl": "https://compliance.nexiel.io/v1/verify/hosted/7d3c2b1a-0f9e-4d8c-b7a6-5e4d3c2b1a09#token=Yq3nW0vR8tLx...",
  "sandboxWalletUrl": "https://sandbox.nexiel.io/present?client_id=x509_hash%3AUvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk&request_uri=https%3A%2F%2Fcompliance.nexiel.io%2Fv1%2Fverify%2Fsessions%2F7d3c2b1a-0f9e-4d8c-b7a6-5e4d3c2b1a09%2Frequest-object&request_uri_method=post",
  "metadata": {},
  "transactionData": [
    {
      "type": "urn:eudi:sca:payment:1",
      "schemaId": "urn:eudi:sca:payment:1",
      "credentialIds": [
        "sca_attestation"
      ],
      "hashAlgorithms": [
        "sha-256"
      ],
      "hashes": {
        "sha-256": "ewbJq_F1rsX7WtHuosq6G-CO93BsB_Jp1ndFFZrjCqs"
      }
    }
  ]
}

transactionData gives, per transaction, the hash of the exact string the wallet signs over. The transaction itself appears only inside the signed request the wallet fetches, never in authorizationRequest. Reusing an Idempotency-Key for a different amount or payee is a 409, never a replay of the other transaction.

What the wallet signs

Each transaction_data entry is the base64url encoding of a JSON object with type, credential_ids, transaction_data_hashes_alg, and payload (TS12 §4.2), serialized with the JSON Canonicalization Scheme (RFC 8785). The wallet hashes that base64url string as received (OpenID4VP 1.0 Appendix B.3.3.1) and puts the hash in its key-binding JWT with the claims TS12 §3.6 adds:

Key-binding JWT payload (illustrative)
{
  "aud": "x509_hash:Uvo3HtuIxuhC92rShpgqcT3YXwrqRxWEviRiA0OZszk",
  "iat": 1791712781,
  "nonce": "Zx7c2Vb9kQ4wLm8NrT1pYf6sHd3jKa0eGuIoBz5vXcM",
  "sd_hash": "Re-CtLZfjGLErKy3eSriZ4bBx3AtUH5Q5wsWiiWKIwY",
  "jti": "deeec2b0-3bea-4477-bd5d-e3462a709481",
  "response_mode": "direct_post.jwt",
  "amr": [
    {
      "knowledge": "pin_6_or_more_digits"
    },
    {
      "inherence": "fingerprint_device"
    }
  ],
  "transaction_data_hashes": [
    "ewbJq_F1rsX7WtHuosq6G-CO93BsB_Jp1ndFFZrjCqs"
  ],
  "transaction_data_hashes_alg": "sha-256"
}

Nexiel rejects the response when any of these hold:

  • a hash is missing, extra, altered, or repeated, or the algorithm is not one the request offered
  • the transaction is bound to a credential other than the SCA attestation presented
  • jti is missing, too short to be random, or was used before (a replay)
  • amr names fewer than two different factor categories, or a category or method TS12 does not define
  • response_mode differs from the request's
  • the attestation does not come from a bank your profile trusts, or is not the type it names
  • the attestation's own aud names an audience your profile does not list in acceptedAudiences

A rejected session is marked failed, its transaction is deleted, and no decision is released.

The decision

The wallet's own reply carries only where to send the user next:

POST /v1/verify/sessions/{sessionId}/responses (the wallet's own reply)
{
  "redirect_uri": "https://compliance.nexiel.io/v1/verify/wallet-return"
}

Your backend reads the outcome with GET /v1/verify/sessions/{sessionId}:

GET /v1/verify/sessions/{sessionId}
{
  "sessionId": "7d3c2b1a-0f9e-4d8c-b7a6-5e4d3c2b1a09",
  "clientId": "docs-example-client",
  "checkType": "sca-payment",
  "templateVersion": "sca-payment@1",
  "livemode": false,
  "status": "completed",
  "createdAt": "2026-10-11T09:59:00.000Z",
  "expiresAt": "2026-10-11T10:09:00.000Z",
  "metadata": {},
  "sandboxWalletUrl": null,
  "decision": {
    "method": "eudi_wallet",
    "booleanProofs": {
      "strongCustomerAuthentication": true,
      "transactionDataBound": true
    },
    "amlResult": null,
    "pepFlag": null,
    "sanctionedFlag": null,
    "listsChecked": [],
    "humanReviewRequired": false,
    "frozenDecisionArtifact": null,
    "screeningCandidates": null,
    "credentialMechanism": "sca_sd_jwt_vc",
    "evidencePackStatus": "not_applicable",
    "evidencePackDelivery": null,
    "issuerCertificateStatus": {
      "status": "good",
      "handling": "accepted"
    },
    "credentialStatus": {
      "status": "valid",
      "mechanism": "status_list",
      "handling": "accepted",
      "unavailableReason": null
    },
    "transactionDataBinding": [
      {
        "type": "urn:eudi:sca:payment:1",
        "schemaId": "urn:eudi:sca:payment:1",
        "credentialId": "sca_attestation",
        "hashAlgorithm": "sha-256",
        "hash": "ewbJq_F1rsX7WtHuosq6G-CO93BsB_Jp1ndFFZrjCqs"
      }
    ],
    "scaAuthentication": {
      "ts12Version": "1.0.1",
      "transactionType": "urn:eudi:sca:payment:1",
      "schemaId": "urn:eudi:sca:payment:1",
      "authenticationCode": "deeec2b0-3bea-4477-bd5d-e3462a709481",
      "amr": [
        {
          "knowledge": "pin_6_or_more_digits"
        },
        {
          "inherence": "fingerprint_device"
        }
      ],
      "factorCategories": [
        "inherence",
        "knowledge"
      ],
      "responseMode": "direct_post.jwt",
      "keyBindingIssuedAt": "2026-10-11T09:59:41.000Z",
      "attestationType": "https://bank.example/credentials/sca/payment-account",
      "attestationStatusCheck": "valid",
      "issuerTrust": {
        "source": "tenant_sca_profile",
        "profileId": "3b9d1e2c-7a4f-4c8b-9e1d-2f3a4b5c6d7e",
        "mode": "issuer_anchors",
        "anchorSha256": "9f2c4b8a1e7d3c6b5a4f2e1d0c9b8a7f6e5d4c3b2a1f0e9d8c7b6a5f4e3d2c1b",
        "leafSha256": "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b"
      },
      "dynamicLinking": {
        "boundElements": [
          "amount",
          "currency",
          "payee.name",
          "payee.id"
        ],
        "hashAlgorithm": "sha-256",
        "transactionDataHash": "ewbJq_F1rsX7WtHuosq6G-CO93BsB_Jp1ndFFZrjCqs",
        "amountEstimated": false,
        "recurring": false,
        "amountVariable": false
      }
    },
    "trustPolicy": {
      "versionId": null,
      "sha256": "9b1f0d6c2a4e8f3b7c5d1e9a0f2b4c6d8e1f3a5b7c9d0e2f4a6b8c0d1e3f5a7b",
      "trustSource": "eu_pid_providers",
      "issuerJurisdiction": null,
      "trustAnchorSha256": null,
      "issuerRegistration": null
    },
    "decidedAt": "2026-10-11T09:59:42.120Z"
  }
}
  • authenticationCode is the key-binding JWT's jti, which TS12 §3.6 defines as the authentication code PSD2 requires. It is unique per presentation.
  • amr lists the factors the wallet applied, for your PSD2 traceability record.
  • dynamicLinking appears for a payment (and an e-mandate that carries one). The signed hash covers the amount, the currency, and the payee, so the authentication code is linked to that amount and payee (PSD2 RTS Art. 5). When amountEstimated or amountVariable is true, the user approved an estimate or a variable recurring amount, not an exact one. It is null for a login or account access.

To check the binding yourself, recompute the hash from your own copy of the transaction and compare it with transactionDataBinding[0].hash. The client SDKs, coming to npm and PyPI, do it in one call:

import { computeScaTransactionDataHash } from '@nexiel/sdk';

const hash = await computeScaTransactionDataHash({
  type: 'urn:eudi:sca:payment:1',
  credentialIds: ['sca_attestation'],
  hashAlgorithms: ['sha-256'],
  payload, // the same payload you sent
});
const bound = session.decision?.transactionDataBinding?.[0]?.hash === hash;

Testing in test mode

In test mode (a session started with a test key), a session without an SCA attestation profile of your own trusts the Nexiel TEST PSP, a stand-in bank that exists only in test mode. Get a TEST SCA attestation bound to your test wallet's key from POST /v1/verify/sandbox/sca-attestations. This route takes no Authorization header and is rate limited by source address:

curl -s -X POST https://compliance.nexiel.io/v1/verify/sandbox/sca-attestations \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{ "holderPublicJwk": { "kty": "EC", "crv": "P-256", "x": "...", "y": "..." } }'

Your test wallet fetches the signed request, presents the attestation with no disclosures, and signs a key-binding JWT like the one above with the matching private key. The TEST attestation chains to the Nexiel TEST CA root at GET /v1/verify/sandbox/test-ca.pem. A live session rejects every TEST attestation. Adding a test-mode (sandbox) profile of your own? Issue new test certificates afterwards, so your test registration certificate registers its attestation type.

What gets persisted

  • While the session is open, the transaction you sent, encrypted at rest. It is deleted the moment the session completes or fails, and when it expires.
  • After the decision: the transaction hash, the authentication code, the factors, the response mode, the attestation type, and which anchor or pinned key trusted the bank, plus the session id, client id, timestamps, and the hash of the presentation. No amount, payee, or mandate text.
  • A SHA-256 hash of each authentication code, for 90 days, to refuse a reused one.
  • No attestation claim: the request asks for none.

Production status

Built to TS12 v1.0.1 and to OpenID4VP 1.0 transaction data. Production needs four things: an approved entitlement for the check type, your relying-party identity with a registration certificate that registers your users' banks' attestation types, an SCA attestation profile for each bank, and banks that issue TS12 SCA attestations into their customers' wallets. Until a bank does, there is no attestation for a real user to present. Test mode works end to end today.

  • Every SCA attestation is checked for revocation against its bank's status list, signed under the same trust as the attestation. A revoked or suspended attestation is refused, and so is one whose status cannot be established, including a long-lived attestation that carries no status reference. An attestation valid for 24 hours or less with no status reference needs no revocation check. The outcome is returned as attestationStatusCheck and credentialStatus.
  • The SCA flow has not yet been run against a production wallet app.
  • A session asks for the SCA attestation alone. Combining it with other attestations in one request (TS12 §3.4) is not offered yet.
  • SCA works with SD-JWT VC attestations only. TS12 covers that format alone, and no specification yet defines transaction data in an ISO mdoc request.
  • Nexiel authenticates the user and binds the transaction. It does not execute payments or mandates. The decision is Nexiel's verification record: it does not include the signed presentation, so a bank cannot verify it independently. When you are not the user's bank, agree with the bank how it accepts your authentication result, over your existing payment or open banking connection.

Reference

Every route, parameter, and response schema on this page is in the Verify API reference: POST /v1/verify/sessions, GET /v1/verify/sessions/{sessionId}, /v1/verify/sca/attestation-profiles, and POST /v1/verify/sandbox/sca-attestations.