Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (20 sloc) 1.24 KB
---
title: Building a matching service
weight: 10
---
# Building a matching service
A matching service is is made up of:
* Matching Service Adapter (MSA) provided by GOV.UK Verify
* Local Matching Service built by you
You must host both the MSA and the Local Matching Service on your own infrastructure.
## How matching works with GOV.UK Verify
**figure arch_overview.svg**
When an identity provider has verified a user’s identity, it generates and sends some limited information about that user’s identity to the service via the Verify Hub.
The GOV.UK Verify Hub sends the information, in SAML, to your service where the [Matching Service Adapter (MSA) ](LINK) validates the authenticity of the SAML message and converts it into JSON data.
The MSA then sends the JSON to your [Local Matching Service ](LINK).
The Local Matching Service runs a series of checks to find a possible match in your local datastore(s) and will return:
- no unique match (no match at all or more than one match)
- unique match with one record
Your [matching strategy ](LINK) should define what your service should do for each outcome.
You must host both the MSA and the Local Matching Service. Together they are known as a ‘matching service’.
<%= partial "partials/links" %>
You can’t perform that action at this time.