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
- You start a verification as described in Step 2.
- The user signs in to their bank.
- The user scans a government ID and takes a selfie.
- Hub compares the two sets of details.
- 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 preparedTo 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_namefamily_namebirthdatepostal_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.
| Key | What it holds |
|---|---|
sub, given_name, family_name, birthdate | A 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.me | The full bank verification result |
com.securekey.vids | The full document verification result, including scan_result, any fraud flags and any images |
com.securekey.matching | The comparison. leftDigitalIdentity is the bank result and rightDigitalIdentity is the document. |
efxWaterfallKYC | Not 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.
| Bank | Document | Partial results false (default) | Partial results true |
|---|---|---|---|
| Succeeded | Succeeded, details match | Results from both | Results from both |
| Succeeded | Succeeded, details don't match | Error | Results from both, with a failed match result |
| Succeeded | Failed or cancelled | Error | Results from the bank. The document result has a fail_reason. |
| Failed or cancelled | Succeeded | Error | Results from the document. The bank result has a fail_reason. |
| Failed or cancelled | Failed or cancelled | Error | Error |
- With
false, both verifications must succeed and their details must match. Any failure arrives at yourredirect_urias an error, with nocode. See Errors. - With
true, you get results as long as one verification succeeded. Failures are reported inside the userinfo response, as afail_reasonandfail_descriptionin the result that failed. You decide whether a partial result is enough. See Failures in the userinfo response.
A document that isn'tCLEARcounts as failed — unless Partial document results (allowPartialResults) is alsotrue. Then it counts as succeeded and you receive itsscan_resultand 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 verification | Partial results true | Partial results true, with Bank verification required |
|---|---|---|
| Succeeded | Results from the bank, plus the document if it succeeded | Same |
| Failed or cancelled | The user continues to document verification, and you get its results if it succeeds | The 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 verification | error_description | With detailed error reporting |
|---|---|---|
| The user cancelled | User cancelled | err:user_cancelled$details:ivs_cancelled |
| A system error | Service error | err: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"
}
}| Case | com.securekey.verified.me | com.securekey.vids | com.securekey.matching |
|---|---|---|---|
| Match failed | Full result | Full result | REJECTED, with scores and fail_reason MATCH_FAILED |
| Bank verification failed | fail_reason only | Full result | fail_reason NO_VME_CLAIMS, no scores |
| Document verification failed | Full result | fail_reason only | fail_reason NO_DOCUMENT_CLAIMS, no scores |
These are all the fail_reason and fail_description values you can receive in dual mode.
Branch onfail_reason, notfail_description.
fail_reasonis a fixed code.fail_descriptionis free text that can change, so use it for logging only.
Bank verification (com.securekey.verified.me)
fail_reason | fail_description | When |
|---|---|---|
USER_CANCELLED | User cancelled transaction | The user cancelled on the bank selection screen or during bank sign-in |
SYSTEM_ERROR | Failed to process use license request | The 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_reason | fail_description | When |
|---|---|---|
USER_CANCELLED | User has canceled the document verification | The user cancelled the scan or declined camera access |
USER_CANCELLED | User has declined terms and conditions | The user declined the terms |
REJECTED | Document R | The document was rejected, and Partial document results (allowPartialResults) is false |
SUSPECTED | Document S | The document was suspected, and Partial document results (allowPartialResults) is false |
NO_DOCUMENT_CLAIMS | OCR provider session expired | The scanning session expired before the user finished |
SYSTEM_ERROR | Error on handling document claims | A system error while processing the scan |
Comparison (com.securekey.matching)
fail_reason | fail_description | When |
|---|---|---|
MATCH_FAILED | Match Failed | The details were compared and scored below the threshold. matchStatus is REJECTED, with scores. |
NO_VME_CLAIMS | Error during data matching processing. Err: Claims do not exist | Bank verification didn't succeed, so there was nothing to compare. No scores. |
NO_DOCUMENT_CLAIMS | Error during data matching processing. Err: Claims do not exist | Document verification didn't succeed, so there was nothing to compare. No scores. |
DOCUMENT_WITH_RESULT_NOT_CLEAR | Error during data matching processing. Err: Rejected/suspicious input - cannot match | The document wasn't CLEAR, so it wasn't compared. Only with Partial document results true. All scores and matchThreshold are 0. |
SYSTEM_ERROR | Starts 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
subis 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 totrueas well. The document then counts as succeeded, and the match is skipped withfail_reasonDOCUMENT_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
falseAny failure is an error. Bank verification comes first, so if it doesn't succeed, the flow ends there.
error | error_description | When |
|---|---|---|
access_denied | User cancelled | The user cancelled before or during bank verification |
access_denied | Service error | Bank verification failed with a system error |
access_denied | Verified.Me completed and Document cancelled | Bank verification succeeded, then the user cancelled the document step or declined the consent screen, or the credit bureau check failed |
access_denied | Verified.Me completed and Document error | A system error while processing the scan |
access_denied | Verified.Me completed and Document R | The document was rejected |
access_denied | Verified.Me completed and Document S | The document was suspected |
access_denied | Verified.Me completed and Document idv_expired | The scanning session expired before the user finished |
access_denied | Verified.Me completed and Document completed but data could not be matched | The 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_expired | The session has expired | The session timed out before the user finished |
With Partial results true
trueYou only get an error when there's nothing to return.
error | error_description | When |
|---|---|---|
access_denied | User cancelled | The user cancelled, and no verification succeeded or started after it. With Bank verification required, this is what a cancelled bank verification returns. |
access_denied | Service error | Bank verification failed, and the document step didn't start. With Bank verification required, this is what a failed bank verification returns. |
access_denied | Verified.Me <bank result> and Document <document result> | Both verifications failed. See the combinations below. |
session_expired | The session has expired | The session timed out before the user finished |
When both fail, <bank result> is one of:
| Bank result | Meaning |
|---|---|
cancelled | The user cancelled bank verification |
error | A system error in bank verification |
And <document result> is one of:
| Document result | Meaning |
|---|---|
cancelled | The user cancelled the document step, or didn't start it |
error | A system error while processing the scan |
R | The document was rejected |
S | The document was suspected |
idv_expired | The 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 containVerified.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_description | When |
|---|---|
err:system_error$details:ivs_error | A system error in bank verification |
err:user_cancelled$details:ivs_cancelled | The user cancelled bank verification |
err:user_cancelled$details:document_idv_cancelled | The user cancelled the document step |
err:user_cancelled$details:cancelled_on_idv_guidance_page | The user cancelled on a dual mode instructions screen |
err:document_rejected | The document was rejected. The flags are in the Auth Report API. |
err:document_suspected | The document was suspected. The flags are in the Auth Report API. |
err:idv_data_matching_failed$details:mismatch | The bank and document details didn't match. The score is in the Auth Report API. |
err:system_error$details:matching_error | The comparison failed with a system error |
err:user_cancelled | The user cancelled elsewhere, such as declining the consent screen |
err:system_error | A system error while processing the scan, the scanning session expired, the credit bureau check failed, or another internal error |
err:session_timeout | The 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
- Bank verification (IVS)
- Document verification (DVS)
- Select mode — if you need either, not both
Updated 3 days ago