A mock version of a Consumer Data Right Data Recipient Software Product
50K+

This project includes source code, documentation and instructions for a Consumer Data Right (CDR) Mock Data Recipient.
This repository contains a mock implementation of a Data Recipient and is offered to help the community in the development and testing of their CDR solutions.
The Mock Data Recipient in this release:
The Mock Data Recipient uses the Mock Register and the Banking and Energy Mock Data Holders. You can swap out any of the Mock Data Holders, Mock Data Register and Mock Data Recipient solutions with a solution of your own.
There are a number of ways that the artefacts within this project can be used:
To get started, clone the source code.
git clone https://github.com/ConsumerDataRight/mock-data-recipient.git
Set your debug profile to CDR.DataRecipient.Web
To get help on launching and debugging the solution, see the help guide.
If you would like to contribute features or fixes back to the Mock Data Recipient repository, consult the contributing guidelines.
A version of the Mock Data Recipient is built into a single Docker image that is made available via docker hub.
docker pull consumerdataright/mock-data-recipient
To get help on launching and debugging the solutions as containers and switching out your solution(s), see the help guide.
Consult the Certificate Management documentation for more information about how certificates are used for the Mock Data Recipient.
The docker compose file can be used to run multiple containers from the Mock CDR Ecosystem.
Note: the docker compose file utilises the Microsoft SQL Server Image from Docker Hub. The Microsoft EULA for the Microsoft SQL Server Image must be accepted to use the docker compose file. See the Microsoft SQL Server Image on Docker Hub for more information.
To get help on launching and debugging the solutions as containers and switching out your solution(s), see the help guide.
The following diagram outlines the high level architecture of the Mock Data Recipient:

Dynamic Client Registration Interface:

The Mock Data Recipient contains the following components:
https://localhost:9001data-holder-brands - populated when a response is received from the Register's Get Data Holder Brands API.client-registrations - populated when a response is received from a successful DCR request to a Data Holder.cdr-arrangements - populated after a successful consent and authorisation flow with a Data Holder.The following technologies have been used to build the Mock Data Recipient:
C# using the .Net 8 framework.SQL instance.The Mock Data Recipient has been built as a test harness to demonstrate the interactions between the Register and Data Holders. The Mock Data Recipient allows the end user to test the various interactions by changing input values, executing and viewing the response. The Mock Data Recipient requires a Mock Register and a Banking and Energy Mock Data Holder to completely mimic the CDR Ecosystem. You can swap out any of the Mock Data Holders, Mock Data Register and Mock Data Recipient solutions with a solution of your own.
Consents and Authorisation flow of FAPI 1.0 Migration Phase 1 is no longer supported. Use the Pushed Authorisation Request (PAR) flow when testing against data holders that have implemented FAPI 1.0 Migration Phase 2 or Phase 3.
We encourage contributions from the community. See our contributing guidelines.
This project has adopted the Contributor Covenant. For more information see the code of conduct.
See our security policy for information on security controls, reporting a vulnerability and supported versions.
The Mock Data Recipient is provided as a development tool only. It conforms to the Consumer Data Standards.
Content type
Image
Digest
sha256:f9b2864ea…
Size
166.4 MB
Last updated
3 months ago
docker pull consumerdataright/mock-data-recipient