Skip to content

Commit

Permalink
Merge pull request #104 from vharsh/renew_tag
Browse files Browse the repository at this point in the history
[INJICERT-864] bump up version for develop
  • Loading branch information
jainhitesh9998 authored Feb 5, 2025
2 parents a0e72e0 + 9bafadc commit 1f1d15b
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mock-certify-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>io.mosip.certify</groupId>
<artifactId>mock-certify-plugin</artifactId>
<version>0.3.1-SNAPSHOT</version>
<version>0.4.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>mock-certify-integration-impl</name>
Expand Down
2 changes: 1 addition & 1 deletion mosip-identity-certify-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.mosip.certify</groupId>
<artifactId>mosip-identity-certify-plugin</artifactId>
<version>0.3.0-SNAPSHOT</version>
<version>0.4.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>mosipid-certify-integration-impl</name>
Expand Down
75 changes: 75 additions & 0 deletions postgres-dataprovider-plugin/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,78 @@
# PostgreSQL Data Provider Plugin for Inji Certify

A plugin for Inji Certify that enables credential issuance using PostgreSQL data sources.

## Features

* Parameterized SQL query execution
* Automatic JSON transformation of database results
* Integration with Inji Certify for VC issuance

## Prerequisites

* Java 21
* PostgreSQL (The database has to be same as the one used with Inji Certify)
* Inji Certify v0.10.x


## Workflow

```mermaid
sequenceDiagram
participant Client as 🌐 Client
box Inji Certify #E6F3FF
participant credential_endpoint as 🔗 Credential API
participant VelocityEngine as ⚙️ Template Engine
participant VCSigner as 🔏 VC Signer
participant TemplateDB as 💾 Template Store
end
box PostgreSQL Data Provider Plugin #FFE6E6
participant DataProvider as 🔌 Data Provider
end
participant PostgresDB as 💾 PostgreSQL DB
Client->>credential_endpoint: Request VC Issuance (OIDC4VCI)
credential_endpoint->>DataProvider: Request Data (parameters)
DataProvider->>PostgresDB: Establish Connection
PostgresDB-->>DataProvider: Connection Established
DataProvider->>PostgresDB: Execute SQL Query
Note right of PostgresDB: Query processes<br/>with parameters
PostgresDB-->>DataProvider: Return Result Set
DataProvider->>DataProvider: Convert to JSONObject
Note right of DataProvider: Transform DB results<br/>to JSON format
DataProvider->>PostgresDB: Close Connection
DataProvider-->>credential_endpoint: Return JSONObject
credential_endpoint->>TemplateDB: Fetch Credential Template
TemplateDB-->>credential_endpoint: Return Template
credential_endpoint->>VelocityEngine: Process Template with JSON Data
VelocityEngine-->>credential_endpoint: Return unsigned Credential Data
credential_endpoint->>VCSigner: Sign Credential
Note right of VCSigner: Sign VC
VCSigner-->>credential_endpoint: Return Signed VC
credential_endpoint-->>Client: Return Final VC (OIDC4VCI)
```

1. **Client Request**: Initiate VC request via OIDC4VCI protocol
2. **Data Fetching**:
* Credential API calls PostgreSQL Data Provider
* Secure connection established with database
* Parameterized SQL query executed
* Results converted to JSON format
3. **Credential Generation**:
* Template engine merges data with credential template
* VC Signer adds cryptographic proofs
4. **Response**: Signed VC returned to client


## Configuration docs for Postgres Plugin

- Pre-requisites
Expand Down
2 changes: 1 addition & 1 deletion postgres-dataprovider-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>io.mosip.certify</groupId>
<artifactId>postgres-dataprovider-plugin</artifactId>
<version>0.3.0-SNAPSHOT</version>
<version>0.4.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>postgres-dataprovider-plugin</name>
Expand Down
2 changes: 1 addition & 1 deletion sunbird-rc-certify-integration-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.mosip.certify.sunbirdrc</groupId>
<artifactId>sunbird-rc-certify-integration-impl</artifactId>
<version>0.3.0-SNAPSHOT</version>
<version>0.4.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>sunbird-rc-certify-integration-impl</name>
Expand Down
2 changes: 1 addition & 1 deletion sunbird-rc-esignet-integration-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.mosip.esignet.sunbirdrc</groupId>
<artifactId>sunbird-rc-esignet-integration-impl</artifactId>
<version>0.3.0-SNAPSHOT</version>
<version>0.4.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>sunbird-rc-esignet-integration-impl</name>
Expand Down

0 comments on commit 1f1d15b

Please sign in to comment.