Skip to content

Commit

Permalink
Injiver 722 server side verification (#229)
Browse files Browse the repository at this point in the history
* [INJIVER-722] - add api for server side verification and integrate with ui

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

* [INJIVER-722] - remove sunbird dependency

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

* [INJIVER-722] - remove sunbird dependency patches from docker

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

* [INJIVER-722] - update root API path

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

* [INJIVER-722] - update vc status condition and api route

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

---------

Signed-off-by: Sreenadh S <[email protected]>
  • Loading branch information
sree96 authored Nov 12, 2024
1 parent c4e49e9 commit 807ba35
Show file tree
Hide file tree
Showing 17 changed files with 118 additions and 566 deletions.
40 changes: 40 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,25 @@
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>danubetech</id>
<name>danubetech</name>
<layout>default</layout>
<url>https://repo.danubetech.com/repository/maven-public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>google</id>
<name>GoogleMaven</name>
<layout>default</layout>
<url>https://maven.google.com</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>

</repositories>

<distributionManagement>
Expand All @@ -68,6 +87,7 @@
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>

</distributionManagement>

<properties>
Expand Down Expand Up @@ -99,6 +119,26 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.android.identity</groupId>
<artifactId>identity-credential</artifactId>
<version>20231002</version>
</dependency>
<dependency>
<groupId>info.weboftrust</groupId>
<artifactId>ld-signatures-java</artifactId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>decentralized-identity</groupId>
<artifactId>jsonld-common-java</artifactId>
<version>1.8.0</version>
</dependency>
<dependency>
<groupId>io.mosip</groupId>
<artifactId>vcverifier-jar</artifactId>
<version>1.1.0-SNAPSHOT</version>
</dependency>
</dependencies>

<build>
Expand Down
3 changes: 2 additions & 1 deletion ui/.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ DEFAULT_FONT_URL=https://fonts.googleapis.com/css?family=Inter
OVP_QR_HEADER=INJI_OVP://
DEFAULT_FAVICON=favicon.ico
INTERNET_CONNECTIVITY_CHECK_ENDPOINT=https://dns.google/
INTERNET_CONNECTIVITY_CHECK_TIMEOUT=10000
INTERNET_CONNECTIVITY_CHECK_TIMEOUT=10000
VERIFY_SERVICE_API_URL=/v1/verify
3 changes: 0 additions & 3 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ ENV OVP_QR_HEADER=$ovpQrHeader
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./

# Cop the patch files required for the verification sdk
COPY patches/* ./patches/

# Install Node.js dependencies
RUN npm install

Expand Down
32 changes: 23 additions & 9 deletions ui/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
server {
listen 80;
location / {
http {
server {
listen 80;
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}


location /v1/verify {
proxy_pass http://inji-verify-service.injiverify/v1/verify;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}

location / {
try_files $uri $uri/ /index.html;
}
}
}
}
Loading

0 comments on commit 807ba35

Please sign in to comment.