Dual mode

Require both bank verification and document verification, and compare the results.

Dual mode requires the user to complete both bank verification (IVS) and document verification (DVS). Hub then compares the two results against each other.

Use this when you need a higher level of assurance than either method alone — the bank's record and the government document have to agree.

Scope

openid dual_scope

Your exact scope string is set during onboarding.

How it works

  1. You start a verification as described in Step 2.
  2. The user signs in to their bank.
  3. The user scans a government ID and takes a selfie.
  4. Hub compares the two sets of details.
  5. You collect the results from the userinfo endpoint.

The user completes both verifications in one session, which is what gives dual mode its higher assurance. Hub shows the user both steps before they begin, and guides them into the document step after bank sign-in.

📘

Help users come prepared

To maximize pass rates, tell users before you redirect them that they'll need their online banking sign-in and a government-issued photo ID. Users who come prepared complete the flow more smoothly.

How the comparison works

Hub compares four attributes from the bank profile against the scanned document:

  • given_name
  • family_name
  • birthdate
  • postal_code

If they agree closely enough, the verification succeeds. If not, it fails with a matching error.

🚧

Documents without an address score 0 for postal code. Only driver's licences and provincial photo cards carry an address. With any other document, such as a passport, postal code scores 0, which caps the overall score at 75. Name and birthdate then need to match closely to pass. See Matching rulesets.

What you get back

The userinfo response groups the results under separate keys: one for each verification, and one for the comparison.

{
  "sub": "Q7FkdchyKdU80-7A51gPlVDiyN5dGAfZvsacq7AlaJA",
  "given_name": "John",
  "family_name": "Doe",
  "birthdate": "1965-03-03",
  "com.securekey.verified.me": {
    "sub": "Q7FkdchyKdU80-7A51gPlVDiyN5dGAfZvsacq7AlaJA",
    "source": "bank",
    "given_name": "John",
    "middle_name": "M",
    "family_name": "Doe",
    "birthdate": "1965-03-03",
    "address": {
      "street_address": "4101 Yonge Street",
      "locality": "Toronto",
      "region": "ON",
      "postal_code": "M2P 1N6",
      "country": "CA"
    },
    "email": "[email protected]",
    "phone_number": "14169378708",
    "dacPseudonym": "Q7FkdchyKdU80-7A51gPlVDiyN5dGAfZvsacq7AlaJA",
    "ui_locale": "en-CA",
    "license_id": "cB-Gqc0zPrIWh2JAN2r9eZ9HM3-U1HAwR9o7HFmz-SE"
  },
  "com.securekey.vids": {
    "sub": "d306f935-cb23-4a39-8acc-232eed539e1e",
    "jobId": "d306f935-cb23-4a39-8acc-232eed539e1e",
    "doc_type": "drivers_license",
    "source": "driving_licence",
    "scan_result": "CLEAR",
    "given_name": "JOHN",
    "family_name": "DOE",
    "birthdate": "1965-03-03",
    "address": {
      "street_address": "4101 Yonge Street",
      "locality": "Toronto",
      "region": "ON",
      "postal_code": "M2P 1N6",
      "country": "CAN"
    },
    "doc_number": "S12345678901234",
    "issue_date": "2021-03-15",
    "expiry_date": "2031-03-15",
    "issuing_country": "CA",
    "issuing_authority": "ON",
    "nationality": "N/A",
    "dcn": "RG1234567",
    "acn": "0012345678",
    "com.securekey.verified.me.ui_locale": "en-CA"
  },
  "com.securekey.matching": {
    "matchStatus": "CLEAR",
    "matchData": {
      "matchScore": 99.5,
      "matchThreshold": 65,
      "given_name_score": 99,
      "family_name_score": 99,
      "birthdate_score": 100,
      "postal_code_score": 100
    },
    "identityData": {
      "leftDigitalIdentity": "com.securekey.verified.me",
      "rightDigitalIdentity": "com.securekey.vids"
    }
  }
}

This example has the Stable user identifier option set to true, so sub is the user's dacPseudonym.

KeyWhat it holds
sub, given_name, family_name, birthdateA summary of the verified person. The names and birthdate come from the bank result, or from the document if the bank result doesn't have them.
com.securekey.verified.meThe full bank verification result
com.securekey.vidsThe full document verification result, including scan_result, any fraud flags and any images
com.securekey.matchingThe comparison. leftDigitalIdentity is the bank result and rightDigitalIdentity is the document.
efxWaterfallKYCNot shown in the example. Returned when your client has the credit bureau check (SK-DA-08), at the top level alongside the other keys.

Read the details from the nested objects. Inside the bank result, ui_locale and license_id have no com.securekey.verified.me. prefix. The document result has its own sub and jobId.

The match result has the same fields as in subject matching. See The match result.

When something fails

What you receive when the match or a verification fails depends on the Partial results option (acceptPartialResult), which your Interac representative sets.

BankDocumentPartial results false (default)Partial results true
SucceededSucceeded, details matchResults from bothResults from both
SucceededSucceeded, details don't matchErrorResults from both, with a failed match result
SucceededFailed or cancelledErrorResults from the bank. The document result has a fail_reason.
Failed or cancelledSucceededErrorResults from the document. The bank result has a fail_reason.
Failed or cancelledFailed or cancelledErrorError
  • With false, both verifications must succeed and their details must match. Any failure arrives at your redirect_uri as an error, with no code. See Errors.
  • With true, you get results as long as one verification succeeded. Failures are reported inside the userinfo response, as a fail_reason and fail_description in the result that failed. You decide whether a partial result is enough. See Failures in the userinfo response.
📘

A document that isn't CLEAR counts as failed — unless Partial document results (allowPartialResults) is also true. Then it counts as succeeded and you receive its scan_result and flags, but it won't be matched against the bank details.

Requiring bank verification

You can make bank verification required, so that a document adds to a successful bank verification but never replaces it. This is the Bank verification required option (mandatoryVerifiers). It works only with Partial results set to true.

Bank verificationPartial results truePartial results true, with Bank verification required
SucceededResults from the bank, plus the document if it succeededSame
Failed or cancelledThe user continues to document verification, and you get its results if it succeedsThe document step is skipped and you get an error

With it set, every result you receive includes a successful bank verification. See Configuration options.

If bank verification fails, Hub skips the document step and redirects the user back with an error instead of a code. There's no userinfo response to fetch.

Bank verificationerror_descriptionWith detailed error reporting
The user cancelledUser cancellederr:user_cancelled$details:ivs_cancelled
A system errorService errorerr:system_error$details:ivs_error

error is access_denied in both cases. When bank verification succeeds, the option makes no difference.

Failures in the userinfo response

With Partial results set to true, a verification that didn't succeed is replaced by its fail_reason and fail_description. The tabs show each case.

{
  "sub": "Q7FkdchyKdU80-7A51gPlVDiyN5dGAfZvsacq7AlaJA",
  "given_name": "John",
  "family_name": "Doe",
  "birthdate": "1965-03-03",
  "com.securekey.verified.me": {
    "sub": "Q7FkdchyKdU80-7A51gPlVDiyN5dGAfZvsacq7AlaJA",
    "source": "bank",
    "given_name": "John",
    "middle_name": "M",
    "family_name": "Doe",
    "birthdate": "1965-03-03",
    "address": {
      "street_address": "4101 Yonge Street",
      "locality": "Toronto",
      "region": "ON",
      "postal_code": "M2P 1N6",
      "country": "CA"
    },
    "email": "[email protected]",
    "phone_number": "14169378708",
    "dacPseudonym": "Q7FkdchyKdU80-7A51gPlVDiyN5dGAfZvsacq7AlaJA",
    "ui_locale": "en-CA",
    "license_id": "cB-Gqc0zPrIWh2JAN2r9eZ9HM3-U1HAwR9o7HFmz-SE"
  },
  "com.securekey.vids": {
    "sub": "d306f935-cb23-4a39-8acc-232eed539e1e",
    "jobId": "d306f935-cb23-4a39-8acc-232eed539e1e",
    "doc_type": "drivers_license",
    "source": "driving_licence",
    "scan_result": "CLEAR",
    "given_name": "JANE",
    "family_name": "DOE",
    "birthdate": "1968-07-21",
    "address": {
      "street_address": "4101 Yonge Street",
      "locality": "Toronto",
      "region": "ON",
      "postal_code": "M2P 1N6",
      "country": "CAN"
    },
    "doc_number": "S12345678901234",
    "issue_date": "2021-03-15",
    "expiry_date": "2031-03-15",
    "issuing_country": "CA",
    "issuing_authority": "ON",
    "nationality": "N/A",
    "dcn": "RG1234567",
    "acn": "0012345678",
    "com.securekey.verified.me.ui_locale": "en-CA"
  },
  "com.securekey.matching": {
    "matchStatus": "REJECTED",
    "matchData": {
      "matchScore": 49.75,
      "matchThreshold": 65,
      "given_name_score": 0,
      "family_name_score": 99,
      "birthdate_score": 0,
      "postal_code_score": 100
    },
    "identityData": {
      "leftDigitalIdentity": "com.securekey.verified.me",
      "rightDigitalIdentity": "com.securekey.vids"
    },
    "fail_reason": "MATCH_FAILED",
    "fail_description": "Match Failed"
  }
}
{
  "sub": "5b1e7c2a-9d3f-4e8b-a6c1-2f0d8e4b7a93",
  "given_name": "JOHN",
  "family_name": "DOE",
  "birthdate": "1965-03-03",
  "com.securekey.verified.me": {
    "fail_reason": "USER_CANCELLED",
    "fail_description": "User cancelled transaction"
  },
  "com.securekey.vids": {
    "sub": "d306f935-cb23-4a39-8acc-232eed539e1e",
    "jobId": "d306f935-cb23-4a39-8acc-232eed539e1e",
    "doc_type": "drivers_license",
    "source": "driving_licence",
    "scan_result": "CLEAR",
    "given_name": "JOHN",
    "family_name": "DOE",
    "birthdate": "1965-03-03",
    "address": {
      "street_address": "4101 Yonge Street",
      "locality": "Toronto",
      "region": "ON",
      "postal_code": "M2P 1N6",
      "country": "CAN"
    },
    "doc_number": "S12345678901234",
    "issue_date": "2021-03-15",
    "expiry_date": "2031-03-15",
    "issuing_country": "CA",
    "issuing_authority": "ON",
    "nationality": "N/A",
    "dcn": "RG1234567",
    "acn": "0012345678",
    "com.securekey.verified.me.ui_locale": "en-CA"
  },
  "com.securekey.matching": {
    "fail_reason": "NO_VME_CLAIMS",
    "fail_description": "Error during data matching processing. Err: Claims do not exist"
  }
}
{
  "sub": "Q7FkdchyKdU80-7A51gPlVDiyN5dGAfZvsacq7AlaJA",
  "given_name": "John",
  "family_name": "Doe",
  "birthdate": "1965-03-03",
  "com.securekey.verified.me": {
    "sub": "Q7FkdchyKdU80-7A51gPlVDiyN5dGAfZvsacq7AlaJA",
    "source": "bank",
    "given_name": "John",
    "middle_name": "M",
    "family_name": "Doe",
    "birthdate": "1965-03-03",
    "address": {
      "street_address": "4101 Yonge Street",
      "locality": "Toronto",
      "region": "ON",
      "postal_code": "M2P 1N6",
      "country": "CA"
    },
    "email": "[email protected]",
    "phone_number": "14169378708",
    "dacPseudonym": "Q7FkdchyKdU80-7A51gPlVDiyN5dGAfZvsacq7AlaJA",
    "ui_locale": "en-CA",
    "license_id": "cB-Gqc0zPrIWh2JAN2r9eZ9HM3-U1HAwR9o7HFmz-SE"
  },
  "com.securekey.vids": {
    "fail_reason": "REJECTED",
    "fail_description": "Document R"
  },
  "com.securekey.matching": {
    "fail_reason": "NO_DOCUMENT_CLAIMS",
    "fail_description": "Error during data matching processing. Err: Claims do not exist"
  }
}
Casecom.securekey.verified.mecom.securekey.vidscom.securekey.matching
Match failedFull resultFull resultREJECTED, with scores and fail_reason MATCH_FAILED
Bank verification failedfail_reason onlyFull resultfail_reason NO_VME_CLAIMS, no scores
Document verification failedFull resultfail_reason onlyfail_reason NO_DOCUMENT_CLAIMS, no scores

These are all the fail_reason and fail_description values you can receive in dual mode.

🚧

Branch on fail_reason, not fail_description.

fail_reason is a fixed code. fail_description is free text that can change, so use it for logging only.

Bank verification (com.securekey.verified.me)

fail_reasonfail_descriptionWhen
USER_CANCELLEDUser cancelled transactionThe user cancelled on the bank selection screen or during bank sign-in
SYSTEM_ERRORFailed to process use license requestThe bank details couldn't be retrieved

If the user declines to share on the consent screen, com.securekey.verified.me is left out of the response entirely.

Document verification (com.securekey.vids)

fail_reasonfail_descriptionWhen
USER_CANCELLEDUser has canceled the document verificationThe user cancelled the scan or declined camera access
USER_CANCELLEDUser has declined terms and conditionsThe user declined the terms
REJECTEDDocument RThe document was rejected, and Partial document results (allowPartialResults) is false
SUSPECTEDDocument SThe document was suspected, and Partial document results (allowPartialResults) is false
NO_DOCUMENT_CLAIMSOCR provider session expiredThe scanning session expired before the user finished
SYSTEM_ERRORError on handling document claimsA system error while processing the scan

Comparison (com.securekey.matching)

fail_reasonfail_descriptionWhen
MATCH_FAILEDMatch FailedThe details were compared and scored below the threshold. matchStatus is REJECTED, with scores.
NO_VME_CLAIMSError during data matching processing. Err: Claims do not existBank verification didn't succeed, so there was nothing to compare. No scores.
NO_DOCUMENT_CLAIMSError during data matching processing. Err: Claims do not existDocument verification didn't succeed, so there was nothing to compare. No scores.
DOCUMENT_WITH_RESULT_NOT_CLEARError during data matching processing. Err: Rejected/suspicious input - cannot matchThe document wasn't CLEAR, so it wasn't compared. Only with Partial document results true. All scores and matchThreshold are 0.
SYSTEM_ERRORStarts with Error during data matching processing.A system error during the comparison. No scores.

Good to know:

  • When bank verification fails, the summary at the top comes from the document, and sub is the ID Hub generates for the verification rather than the stable identifier.
  • A rejected or suspected document comes back without its fraud flags. To receive them, ask for Partial document results (allowPartialResults) to be set to true as well. The document then counts as succeeded, and the match is skipped with fail_reason DOCUMENT_WITH_RESULT_NOT_CLEAR. See When matching doesn't run.
  • With Bank verification required, a failed bank verification returns an error instead, so you never receive the "Bank verification failed" response.

Check each object for fail_reason before reading its details.

Errors

Errors arrive at your redirect_uri as the error and error_description query parameters, instead of a code. Which errors you can get depends on Partial results.

error is access_denied for every failure except a timeout, which is session_expired. It tells you the verification didn't complete. error_description tells you why.

With Partial results false

Any failure is an error. Bank verification comes first, so if it doesn't succeed, the flow ends there.

errorerror_descriptionWhen
access_deniedUser cancelledThe user cancelled before or during bank verification
access_deniedService errorBank verification failed with a system error
access_deniedVerified.Me completed and Document cancelledBank verification succeeded, then the user cancelled the document step or declined the consent screen, or the credit bureau check failed
access_deniedVerified.Me completed and Document errorA system error while processing the scan
access_deniedVerified.Me completed and Document RThe document was rejected
access_deniedVerified.Me completed and Document SThe document was suspected
access_deniedVerified.Me completed and Document idv_expiredThe scanning session expired before the user finished
access_deniedVerified.Me completed and Document completed but data could not be matchedThe bank and document details didn't match, or the comparison failed with a system error. Also when the document wasn't CLEAR and Partial document results (allowPartialResults) is true.
session_expiredThe session has expiredThe session timed out before the user finished

With Partial results true

You only get an error when there's nothing to return.

errorerror_descriptionWhen
access_deniedUser cancelledThe user cancelled, and no verification succeeded or started after it. With Bank verification required, this is what a cancelled bank verification returns.
access_deniedService errorBank verification failed, and the document step didn't start. With Bank verification required, this is what a failed bank verification returns.
access_deniedVerified.Me <bank result> and Document <document result>Both verifications failed. See the combinations below.
session_expiredThe session has expiredThe session timed out before the user finished

When both fail, <bank result> is one of:

Bank resultMeaning
cancelledThe user cancelled bank verification
errorA system error in bank verification

And <document result> is one of:

Document resultMeaning
cancelledThe user cancelled the document step, or didn't start it
errorA system error while processing the scan
RThe document was rejected
SThe document was suspected
idv_expiredThe scanning session expired before the user finished

That gives 10 combinations, from Verified.Me cancelled and Document cancelled to Verified.Me error and Document idv_expired.

🚧

These strings contain Verified.Me, the former name for the Interac Verification Service. The brand changed; the API strings did not. Match them exactly as returned — don't "correct" them in your code.

With detailed error reporting

Clients configured for detailed error reporting receive error=access_denied and a structured error_description instead, including for timeouts. Dual mode values have no stage. If more than one thing failed, you get the first match in this table.

error_descriptionWhen
err:system_error$details:ivs_errorA system error in bank verification
err:user_cancelled$details:ivs_cancelledThe user cancelled bank verification
err:user_cancelled$details:document_idv_cancelledThe user cancelled the document step
err:user_cancelled$details:cancelled_on_idv_guidance_pageThe user cancelled on a dual mode instructions screen
err:document_rejectedThe document was rejected. The flags are in the Auth Report API.
err:document_suspectedThe document was suspected. The flags are in the Auth Report API.
err:idv_data_matching_failed$details:mismatchThe bank and document details didn't match. The score is in the Auth Report API.
err:system_error$details:matching_errorThe comparison failed with a system error
err:user_cancelledThe user cancelled elsewhere, such as declining the consent screen
err:system_errorA system error while processing the scan, the scanning session expired, the credit bureau check failed, or another internal error
err:session_timeoutThe session timed out

See Error reference for every value, and Detailed error reference if your client has detailed error reporting.

Limitations

  • Subject matching is not supported in dual mode. If you need to match against details you already hold, use Subject matching with a single-mode scope instead.
  • Passport scans compare on three attributes rather than four.

Related