Skip to content

Commit

Permalink
[INJIVER-587] - OVP Backend (#239)
Browse files Browse the repository at this point in the history
* [INJIVER-587] - add auth request creation API

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - Add presentattion APIs

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - Add presentattion submission APIs

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - correcting expiry condition

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - refactoring

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - refactoring

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - return verification status with result

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - generate nonce if not ptovided

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - status update

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - status update

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - code cleanup

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - code cleanup

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - add auto timer for setting expiry

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - move sumbission process to a different thread

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - results now sending along with status

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  add pom descriptions

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  remove unused filed for now

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  use lombok constructor

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  rename DTOs based on API docs

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  rename iat to issuedAt

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  rename all Vp to VP and Vc to VC

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  generate nonce woth more randomness for added security

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  move default expiry to constants

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  remove debug logs

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  remove cross origin access

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  rename method

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  rename method

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  moving DTO conversion to service layer

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  rename method

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  rename method

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  use Slf4j to log error

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  refactored

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  use bouncyCastle PEM parser instead of manual parsing

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  move credential verificaton to singleton for performance measures

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  move Gson to singleton for performance measures

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  remove unwanted jws formatting

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  add unit test

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  add unit test

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  add unit test

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  remove mvn wrapper

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  merge core to service and rename group id

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  rename package

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  remove state ana use dynamic calculation

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  rename tables

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  ignore null values in DTO

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] -  ignore null values in DTO

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - remove thread

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - remove thread

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - add base64 decode for pem string

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVEr-587] - test fix

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVEr-587] - refactoring

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVEr-587] - refactoring

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVEr-587] - only sending status now

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587]  - refactoring

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587]  - refactor logic of getting latest submission

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587]  - refactor naming for contrillers and services

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587]  - refactor to bean singleton approach

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587]  - refactored

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587]  - refactored

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587]  - refactored

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587]  - send error also while getting result

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - renamed state

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - move vp-result to different controller

Signed-off-by: Sreenadh S <[email protected]>

* [INJIVER-587] - do not save the PD sent

Signed-off-by: Sreenadh S <[email protected]>

---------

Signed-off-by: Sreenadh S <[email protected]>
Signed-off-by: Vishwa <[email protected]>
  • Loading branch information
sree96 authored Jan 7, 2025
1 parent 2c0e576 commit 089381e
Show file tree
Hide file tree
Showing 63 changed files with 1,487 additions and 486 deletions.
74 changes: 50 additions & 24 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -9,10 +10,10 @@
<version>3.2.3</version>
</parent>

<groupId>io.mosip</groupId>
<groupId>io.inji.verify</groupId>
<artifactId>verify-service-parent</artifactId>
<version>0.1.0-SNAPSHOT</version>
<description>Parent project of MOSIP inji-verify-service</description>
<description>Parent project of MOSIP Inji verify backend service</description>
<url>https://github.com/mosip/inji-verify</url>
<packaging>pom</packaging>
<licenses>
Expand Down Expand Up @@ -87,7 +88,6 @@
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>

</distributionManagement>

<properties>
Expand Down Expand Up @@ -124,6 +124,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
Expand Down Expand Up @@ -153,6 +154,49 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20240303</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk18on</artifactId>
<version>1.76</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.hypersistence</groupId>
<artifactId>hypersistence-utils-hibernate-63</artifactId>
<version>3.8.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.nimbusds/nimbus-jose-jwt -->
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>3.18.1</version>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -193,7 +237,8 @@
</executions>
<configuration>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties
</generateGitPropertiesFilename>
<includeOnlyProperties>
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
Expand All @@ -216,9 +261,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<aggregate>true</aggregate>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -237,22 +279,6 @@
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<doclint>none</doclint>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down
19 changes: 0 additions & 19 deletions verify-service/.mvn/wrapper/maven-wrapper.properties

This file was deleted.

Loading

0 comments on commit 089381e

Please sign in to comment.