Datalayer
Data Layer
The Data Layer is the only component you, as the client, must implement. This layer stores and manages credential data securely within your infrastructure. The Client-Gateway communicates with the Data Layer over HTTP.
Responsibilities
Your implementation should support the following operations:
Create: Add a new credential to the database.
Import: Import an existing credential from external systems.
Revoke: Mark a credential as revoked.
Verify: Validate the status of a credential.
Example Implementation
You can implement the Data Layer using any database technology. Below is an example using MongoDB.
Setting Up MongoDB
Install MongoDB on your infrastructure or use a managed service.
Create a
credentials
collection.
Example Code
Here is an example of a simple Node.js service for the Data Layer:
Client should setup the datalayer URL on dashboard in order to gateway forward requests to the Data Layer for processing.
Last updated