MOSIP Overview
Introduction
OpenCRVS integration with MOSIP follows a very similar technical process as followed for configuring integration with any other National ID system.
For registration, the same API endpoints are configured. "In-form authentication and verification" uses QR Code scanning or eSignet. All integration behaviour is driven by country-level configuration. The reference implementation is the testland country configuration in the OpenCRVS Core repository.
From a back-end perspective, integration logic is split across two layers:
Country configuration (reference: packages/testland) — Contains business logic: eligibility rules, data mapping, event handlers. This is where you customise MOSIP behaviour.
mosip-api middleware — A reusable Docker component that handles low-level communication with MOSIP services (Packet Manager, eSignet, ID Auth SDK, WebSub). Deploy as-is; no code changes needed.
Detailed flow diagrams
To understand the business process around the technical integration between OpenCRVS and MOSIP that is currently available, refer to this Figjam flow diagram:
@opencrvs/mosip library
In order to make life as easy as possible for developers who wish to configure the MOSIP integration, we have abstracted away all the non-customisable logic into an NPM library and created mock servers for both MOSIP and E-Signet.
From OpenCRVS 2.1, the MOSIP integration lives in the OpenCRVS Core repository and is released with every core release: @opencrvs/mosip is published at the same version as OpenCRVS Core, so use the version that matches your OpenCRVS release.
Follow the mosip-api README to run the middleware and mocks alongside your local instance of OpenCRVS. See mock-identities.json for both eSignet & ID Auth mock identities.
mosip-api middleware
The mosip-api middleware is a critical component that must be deployed. This is explained further in the following sections.
Example country configuration: testland
The testland package in the OpenCRVS Core repository provides a fully operational country configuration that implements the MOSIP integration. You can follow exactly how we have configured the full business logic by reading the code.
Key files:
MOSIP eligibility logic & form helpers
MOSIP birth & death registration handlers
Birth correction action handler
Route definitions
Environment variables
Constants
Form pages (birth)
Form pages (death)
Mocks
The following sections will delve into the configuration points in more detail.
Last updated