Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release to develop #232

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions docker-compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@
This is the docker-compose setup to run

- **mimoto-service** which act as BFF for Inji mobile and backend for Inji web.
- **inji-web** and **inji-web-proxy** for frontend
- **inji-web** for frontend

This is not for production use.

## Navigate to inji-web-proxy folder and Build the inji-web-proxy image locally.

> cd inji-web-proxy && docker build -t inji-web-proxy:local .

## Navigate to inji-web folder and Build the inji-web image locally.

> docker build -t inji-web:local .
Expand Down
10 changes: 5 additions & 5 deletions docker-compose/config/mimoto-default.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mosip.inji.warningDomainName=${mosip.api.public.url}
#timeout for vc download api via openid4vci flow in milliseconds
mosip.inji.openId4VCIDownloadVCTimeout=30000
# inji documentation url
mosip.inji.aboutInjiUrl=https://docs.mosip.io/inji/inji-mobile-wallet/overview
mosip.inji.aboutInjiUrl=https://docs.inji.io/inji-wallet/inji-mobile
# minimum storage space required for making audit entry in MB
mosip.inji.minStorageRequiredForAuditEntry=2
# minimum storage space required for downloading / receiving vc in MB
Expand Down Expand Up @@ -260,7 +260,7 @@ mosip.openid.issuers=mimoto-issuers-config.json
mosip.openid.htmlTemplate=credential-template.html
mosip.oidc.client.assertion.type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
mosip.oidc.p12.filename=oidckeystore.p12
mosip.oidc.p12.password=mosip123
mosip.oidc.p12.password=xy4gh6swa2i
mosip.oidc.p12.path=certs/


Expand All @@ -270,14 +270,14 @@ mosip.oidc.p12.path=certs/
mosip.openid.verifiers=mimoto-trusted-verifiers.json

#Inji Web Config
mosip.inji.web.url=https://injiweb.collab.mosip.net
mosip.inji.web.redirect.url=https://injiweb.collab.mosip.net/authorize
mosip.inji.web.url=http://localhost:3004
mosip.inji.web.redirect.url=${mosip.inji.web.url}/authorize
mosip.inji.qr.data.size.limit=10000
mosip.inji.qr.code.height=650
mosip.inji.qr.code.width=650

#OVP Config
mosip.inji.ovp.qrdata.pattern=INJI_OVP://https://injiweb.collab.mosip.net/authorize?response_type=vp_token&resource=%s&presentation_definition=%s
mosip.inji.ovp.qrdata.pattern=INJI_OVP://http://localhost:${server.port}/v1/mimoto/authorize?response_type=vp_token&resource=%s&presentation_definition=%s
mosip.inji.ovp.redirect.url.pattern=%s#vp_token=%s&presentation_submission=%s
mosip.inji.ovp.error.redirect.url.pattern=%s?error=%s&error_description=%s

Expand Down
2 changes: 1 addition & 1 deletion docker-compose/config/mimoto-trusted-verifiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"verifiers": [
{
"client_id": "https://injiverify.collab.mosip.net",
"redirect_uri": [
"redirect_uris": [
"https://injiverify.collab.mosip.net/redirect"
]
}
Expand Down
3 changes: 2 additions & 1 deletion docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:

mimoto-service:
container_name: 'mimoto-service'
image: 'mosipid/mimoto:0.14.0'
image: 'mosipqa/mimoto:0.15.x'
user: root
ports:
- '8099:8099'
Expand All @@ -29,5 +29,6 @@ services:
- ./config/mimoto-default.properties:/home/mosip/mimoto-default.properties
- ./config/mimoto-issuers-config.json:/home/mosip/mimoto-issuers-config.json
- ./config/mimoto-trusted-verifiers.json:/home/mosip/mimoto-trusted-verifiers.json
- ./config/credential-template.html:/home/mosip/credential-template.html
depends_on:
- mimoto-service
1 change: 1 addition & 0 deletions helm/inji-web/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ data:
http {
access_log /var/log/nginx/access1.log;
error_log /var/log/nginx/error1.log;

server {
listen {{ .Values.inji_web.inji_web_port }};
server_name localhost;
Expand Down
2 changes: 0 additions & 2 deletions inji-web-proxy/.env

This file was deleted.

4 changes: 0 additions & 4 deletions inji-web-proxy/.gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions inji-web-proxy/Dockerfile

This file was deleted.

20 changes: 0 additions & 20 deletions inji-web-proxy/README.md

This file was deleted.

20 changes: 0 additions & 20 deletions inji-web-proxy/package.json

This file was deleted.

53 changes: 0 additions & 53 deletions inji-web-proxy/proxy_server.js

This file was deleted.

10 changes: 4 additions & 6 deletions inji-web-test/src/test/java/stepdefinitions/StepDef.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import utils.GlobelConstants;

import java.util.Set;
import java.util.concurrent.TimeUnit;


public class StepDef {
Expand Down Expand Up @@ -81,12 +82,9 @@ public void user_click_on_verify_button() {
}

@Then("User verify Download Success text displayed")
public void user_verify_download_success_text_displayed() {
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
public void user_verify_download_success_text_displayed() throws InterruptedException {
Thread.sleep(10000);
baseTest.getDriver().manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
Assert.assertTrue(homePage.isSuccessMessageDisplayed());
}

Expand Down
7 changes: 5 additions & 2 deletions inji-web/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ server {
root /home/mosip;
autoindex on;
}


# Serve credential-template.html from /home/mosip when accessing /credential-template.html
location = /credential-template.html {
root /home/mosip; # Serve from /home/mosip specifically for this file
index credential-template.html; # Serve this file as the index
}
# Proxy API requests to mimoto-service
location /v1/mimoto/ {
proxy_pass http://mimoto-service:8099/v1/mimoto/;
Expand Down
26 changes: 26 additions & 0 deletions inji-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion inji-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@types/react-outside-click-handler": "^1.3.3",
"@types/react-redux": "^7.1.33",
"autoprefixer": "^9.8.6",
"cross-env": "^7.0.3",
"crypto-js": "^4.2.0",
"i18next": "^23.11.2",
"postcss-cli": "^11.0.0",
Expand All @@ -33,7 +34,7 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "set PORT=3001 && react-scripts start",
"start": "cross-env PORT=3004 react-scripts start",
"build": "CI=false react-scripts build",
"test": "react-scripts test --silent --testPathPattern=__tests__",
"eject": "react-scripts eject",
Expand Down
2 changes: 1 addition & 1 deletion inji-web/public/env.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ window._env_ = {
DEFAULT_FAVICON: "favicon.ico",
DEFAULT_TITLE: "Inji Wallet",
DEFAULT_FONT_URL: "https://fonts.googleapis.com/css?family=Inter",
MIMOTO_HOST: "http://localhost:3010"
MIMOTO_HOST: "http://localhost:8099/v1/mimoto"
};
Loading