Integration overview
The five steps of a Hub verification, and how they fit together.
Every Hub verification follows the same five steps, whichever verification method you use.
This page is the map. Each step has its own page with the detail.
The five steps
| Step | You do | Where |
|---|---|---|
| 1 | Look up Hub's endpoints | Discovery |
| 2 | Send the user to Hub to verify | Starting a verification |
| 3 | Receive the user back, with a one-time code | Handling the redirect |
| 4 | Swap that code for an access token | Token exchange |
| 5 | Use the token to fetch the user's verified details | Retrieving claims |
How it flows
sequenceDiagram
participant U as User
participant RP as Your app
participant H as Hub
RP->>H: 1. GET /.well-known/openid-configuration
H-->>RP: endpoint URLs
RP->>U: 2. Redirect to Hub
U->>H: verifies identity
H->>U: redirect back
U->>RP: 3. code + state
RP->>H: 4. POST /oauth2/token (code)
H-->>RP: access_token
RP->>H: 5. GET /userinfo (access_token)
H-->>RP: verified user details
Two things to understand first
Steps 2 and 3 happen in the user's browser. You redirect the user away to Hub, and Hub redirects them back to you. These are the only steps the user sees.
Steps 1, 4 and 5 happen on your server. These are ordinary HTTPS API calls. The access token from step 4 must never reach the browser.
Plain HTTPS requests
Every step is an ordinary HTTPS request or a browser redirect. Use the HTTP library you already know. There's no SDK to install, and each step page gives you the exact request to send.
The whole integration comes down to:
- One redirect out and one redirect back (steps 2 and 3)
- Three server calls: a
GET, aPOSTand aGET(steps 1, 4 and 5) - Two signed tokens, built with a JWT library using your RSA private key (steps 2 and 4). This is how Hub knows the request came from you. See Signing keys and JWKS.
Familiar with OAuth? Hub follows the OAuth 2.0 authorization code flow with OpenID Connect, so the shape will be familiar. You don't need to know OAuth to integrate. These pages cover everything you need.
What changes between verification methods
The five steps never change. What changes is the scope you request in step 2, which decides how the user is verified and what claims you get back in step 5.
| Method | What verifies the user |
|---|---|
| Bank verification (IVS) | The user signs in to their bank |
| Document verification (DVS) | The user scans a government ID and takes a selfie |
| Verified credentials (VC) | The user shares a reusable credential from the Interac verification app, created the first time with their bank and a government ID |
| Select mode | The user chooses bank or document verification |
| Dual mode | Bank and document verification, results compared |
| Subject matching | Compares a bank or document result against details you already hold |
Before you start
You'll need onboarding to be complete. See the Onboarding checklist.
Next
Updated 4 days ago