Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
7b98fa7
ES-842 corrected the verified claims logi (#249)
ase-101 Sep 22, 2024
32012e2
modified getLanguageValuesList method (#250)
kaifk468 Sep 23, 2024
d0ce351
[ES-1678] Added a new error message for the ekyc failure in i18n.
gk-XL7 Sep 24, 2024
886e486
Updated readme and docker compose
ase-101 Sep 29, 2024
4fdb2d5
[MOSIP-35816] removed deployment script and updated chart
ckm007 Sep 20, 2024
49de1c1
[MOSIP-35816] corrected chart lint yaml
ckm007 Sep 20, 2024
bb017c2
[MOSIP-35816] moved deployment scripts to deploy
ckm007 Sep 21, 2024
4ce7417
[MOSIP-35816] updarted chart values for latest changes to remove arti…
ckm007 Sep 21, 2024
a851515
[MOSIP-35816] moved db-init scripts to deploy
ckm007 Sep 21, 2024
244ab53
[MOSIP-35816] added updated db-init scripts
ckm007 Sep 21, 2024
ab4aae3
[MOSIP-35816] added updated mock-identity-system scripts
ckm007 Sep 21, 2024
3c9bcae
[MOSIP-35816] added updated mock-relying-party-service scripts
ckm007 Sep 21, 2024
9d1b339
[MOSIP-35816] added updated mock-relying-party-ui scripts
ckm007 Sep 21, 2024
dd6a14e
[MOSIP-35816] added install-all.sh, delete-all.sh, restart-all.sh scr…
ckm007 Sep 21, 2024
e552da8
[MOSIP-35816] updated installation scripts
ckm007 Sep 24, 2024
584dbb0
[MOSIP-35816] updated README and installation scripts comments
ckm007 Sep 25, 2024
7583b5e
[MOSIP-35816] added changes for partner onboarder to store reports in…
ckm007 Sep 30, 2024
82dc0de
[MOSIP-35816] removed unused secret creation
ckm007 Sep 30, 2024
5eef65e
[INJICERT-434] optionally support using arbitrary field as PSUT value…
vharsh Oct 3, 2024
8eca2d9
[ES-1689] added test case (#259)
pvsaidurga Oct 3, 2024
897d307
moved tomcat and prometheus configuration to bootstrap.properties
ase-101 Oct 3, 2024
93b35b2
[MOSIP-35987] updated onboarder to support storing reports in nfs volume
ckm007 Oct 1, 2024
88359b0
Updated Readme and pom version
ase-101 Oct 4, 2024
3504b38
[DSD-6382] added prompt to install services
ckm007 Oct 4, 2024
abf1cec
[DSD-6382] removed unused clusterRolebinding
ckm007 Oct 4, 2024
4164da8
[DSD-6382] updated changes to fix dev testing issues
ckm007 Oct 4, 2024
240d118
[DSD-6382] updated correct onboarder chart version (#272)
ckm007 Oct 7, 2024
549062f
Added JsonIgnoreProperties for kyc auth and exchange requests (#269)
Piyush7034 Oct 4, 2024
fa7f71d
[DSD-6382] updated partner onboarder install script
ckm007 Oct 7, 2024
a00fc17
Merge branch 'develop' into release-0.10.x
ckm007 Oct 15, 2024
53579b2
resolved lint failures (#277)
ckm007 Oct 15, 2024
e6b5d54
[DSD-6445]Updated install.sh
Rakshitha650 Oct 23, 2024
ae869a7
[DSD-6445]Updated install.sh
Rakshitha650 Oct 23, 2024
25e0c6e
Merge pull request #279 from Rakshitha650/patch-2
ckm007 Oct 23, 2024
9d005b2
[ES-1842] i18n translation changes.
gk-XL7 Nov 5, 2024
35edf5e
Merge pull request #283 from gk-4VII/ES_1842
aranaravi Nov 5, 2024
1eea123
Fixed the properties file, created only master copy of properties
ase-101 Nov 5, 2024
7c65ad1
Corrected test case and active profile
ase-101 Nov 5, 2024
d8ec71f
Updated the image name
ase-101 Nov 5, 2024
2133522
Merge pull request #285 from ase-101/release-0.10.x
ckm007 Nov 5, 2024
7af134e
INJICERT-586 (#292)
ase-101 Nov 26, 2024
55fd956
[DSD-6742] fixed script for es-dev env
bhumi46 Dec 2, 2024
9d6bad1
Merge pull request #294 from bhumi46/release-0.10.x
ckm007 Dec 3, 2024
b0a6d95
[DSD-6742] Updated Env variables in values.yaml
ckm007 Dec 11, 2024
084b724
Merge pull request #297 from shubham17998/release-0.10.x
ckm007 Dec 11, 2024
e0534c0
[DSD-6742] removed unwanted Env variables in values.yaml
ckm007 Dec 11, 2024
028af22
Merge pull request #298 from shubham17998/release-0.10.x
ckm007 Dec 11, 2024
0c6f70c
[DSD-6742] updated README
ckm007 Dec 12, 2024
b67a771
Merge pull request #299 from shubham17998/release-0.10.x
ckm007 Dec 12, 2024
a880e76
ES-842 Correct documentation
ase-101 Dec 13, 2024
7f646f2
ES-842 Correct documentation
ase-101 Dec 13, 2024
4e02b09
Merge pull request #300 from ase-101/release-0.10.x
ckm007 Dec 13, 2024
d569621
Docker container failing to find libpkcs11-proxy.so
ase-101 Dec 20, 2024
0c1fd63
Merge pull request #303 from ase-101/release-0.10.x
ckm007 Dec 23, 2024
53170ac
Updated Pom versions for release changes (#326)
ckm007 Jan 22, 2025
c570afb
[DSD-6947] eSignet 1.5.0 release
Prafulrakhade Jan 22, 2025
851d773
Merge pull request #327 from Prafulrakhade/release-0.10.x
ckm007 Jan 22, 2025
2802a2b
Squashed commit of the following:
zesu22 Jan 30, 2025
32976d8
Merge pull request #334 from Infosys/feature/merge-0.10.1-squash
ckm007 Jan 30, 2025
4c84948
Removed Unused fields (#335) (#336)
pvsaidurga Jan 31, 2025
bd49e87
[MOSIP-39238] updated db host and updated the init_values.yaml file.
Prafulrakhade Feb 4, 2025
8e80e14
[MOSIP-39238] updated db host and updated the init_values.yaml file.
Prafulrakhade Feb 4, 2025
c653812
Merge pull request #339 from Prafulrakhade/release-0.10.x
ckm007 Feb 11, 2025
64c7617
[MOSIP-39238] Update init_values.yaml
Prafulrakhade Feb 12, 2025
7f5f940
[MOSIP-39238] Update init_values.yaml
Prafulrakhade Feb 12, 2025
d0e6381
Merge pull request #341 from Prafulrakhade/release-0.10.x
ckm007 Feb 12, 2025
25f1094
[MOSIP-39283] removed unused values
Prafulrakhade Feb 13, 2025
fca7d17
Merge pull request #343 from Prafulrakhade/release-0.10.x
ckm007 Feb 14, 2025
6f4937f
Updated Pom versions for release changes (#345)
ckm007 Feb 14, 2025
7c8f718
[DSD-7350] eSignet 1.5.1 release
Prafulrakhade Feb 14, 2025
d26a1d4
Merge pull request #346 from Prafulrakhade/release-0.10.x
ckm007 Feb 14, 2025
e6c6a95
mockservices-ui-bank initial commit
praveenuday24 Apr 1, 2025
0db8a7d
mockservices-ui-bank initial commit
praveenuday24 Apr 1, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
secrets:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
OSSRH_URL: ${{ secrets.RELEASE_URL }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Repository contains mock implementations for eSignet. Only for non-production us
|[Postgres Init](https://github.com/mosip/mosip-infra/tree/v1.2.0.1-B3/deployment/v3/external/postgres) | 12.0.1-B3 |
|[mock-identity-softhsm](https://github.com/mosip/esignet/blob/v1.0.0/helm/install-all.sh) | 12.0.1-B2 |

### Install Pe-req for mock services

### Install Pe-requisites for mock services
* Install `kubectl` and `helm` utilities.
* Run `prereq.sh` to setup below mentioned pre-requisites for mock services.
* Setup softhsm for mock-identity in `Softhsm` namespace.
Expand Down
1 change: 1 addition & 0 deletions deploy/delete-mock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ set -o nounset ## set -u : exit the script if you try to use an uninitialised
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
deleting_mock # calling function

1 change: 1 addition & 0 deletions deploy/mock-identity-system/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if [ $# -ge 1 ] ; then
fi

NS=mockid
CHART_VERSION=0.10.1
CHART_VERSION=0.10.0-develop

echo Create $NS namespace
Expand Down
5 changes: 5 additions & 0 deletions deploy/mock-relying-party-service/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ function installing_mock-relying-party-service() {
--set mock_relying_party_service.ESIGNET_AUD_URL="https://$ESIGNET_HOST/v1/esignet/oauth/v2/token" \
--version $CHART_VERSION $ENABLE_INSECURE \
-f values.yaml --wait
helm -n $NS install mock-relying-party-service mosip/mock-relying-party-service \
--set mock_relying_party_service.ESIGNET_SERVICE_URL="$ESIGNET_SERVICE_URL" \
--set mock_relying_party_service.ESIGNET_AUD_URL="https://$ESIGNET_HOST/v1/esignet/oauth/v2/token" \
--version $CHART_VERSION $ENABLE_INSECURE \
-f values.yaml --wait

kubectl -n $NS get deploy mock-relying-party-service -o name | xargs -n1 -t kubectl -n $NS rollout status

Expand Down
2 changes: 2 additions & 0 deletions deploy/mock-relying-party-ui/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ function installing_mock-relying-party-ui() {
exit 1;
fi

echo Create $NS namespace
kubectl create ns $NS || true
echo Create $NS namespace
kubectl create ns $NS || true

Expand Down
2 changes: 1 addition & 1 deletion deploy/postgres/generate-secret-cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def create_or_update_configmap(configmap_name, namespace, postgres_host, postgre
create_or_update_secret(db_secret_name, namespace, "db-dbuser-password", password)

# Handle postgres-password secret
postgres_secret_name = "esignet-postgres-postgresql"
postgres_secret_name = "postgres-postgresql"
if secret_exists(postgres_secret_name, namespace):
overwrite = input(f"Secret '{postgres_secret_name}' already exists in namespace '{namespace}'. Overwrite? (y/n): ")
if overwrite.lower() == 'y':
Expand Down
2 changes: 1 addition & 1 deletion deploy/postgres/init_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ $# -ge 1 ] ; then
fi

NS=mockid
CHART_VERSION=0.0.1-develop
CHART_VERSION=12.0.1

helm repo add mosip https://mosip.github.io/mosip-helm
helm repo update
Expand Down
3 changes: 2 additions & 1 deletion deploy/postgres/init_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ databases:
mosip_mockidentitysystem:
enabled: true
host: "postgres-postgresql.postgres"
host: "postgres-postgresql.postgres"
port: 5432
su:
user: postgres
secret:
name: esignet-postgres-postgresql
name: postgres-postgresql
key: postgres-password
dml: 1
branch: develop
Expand Down
13 changes: 5 additions & 8 deletions docker-compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,20 @@

This is the docker-compose setup to run mock identity system and mock relying party portal. This is not for production use.

## Overview

This is the docker compose setup to run esignet UI and esignet-service with mock identity system. This is not for production use.

## I am a developer, how to setup dependent services to run mock-identity-system?

1. Run `docker compose --file dependent-docker-compose.yml up` to start all the dependent services.
2. Go to command line for the project root directory and run `mvn clean install -Dgpg.skip=true -DskipTests=true`
3. Start the [MockIdentitySystemApplication.java](../mock-identity-system/src/main/java/io/mosip/esignet/mock/identitysystem/MockIdentitySystemApplication.java) from your IDE.
4. Access the service swagger with this URL - http://localhost:8082/v1/mock-identity-system/swagger-ui.html

## How to start the mock Relying party UI?
## How to start the mock relying party UI?

1. Run [mock-relying-party-portal-docker-compose.yml](mock-relying-party-portal-docker-compose.yml) to start relying party portal.
2. Access Relying party UI at http://localhost:3000
1. Run `docker compose --file dependent-docker-compose.yml up` to start relying party portal.
2. Access relying party portal UI at http://localhost:3000
3. Use the credentials documented [here](https://docs.esignet.io/try-it-out/using-mock-data) to login and experience integration with eSignet in collab.mosip.net environment.

By default, mock Relying party portal is connecting to eSignet (Identity Provider) hosted in collab.mosip.net environment.
By default, mock relying party portal is connecting to eSignet (Identity Provider) hosted in collab.mosip.net environment.
Below environment variables should be changed to point to different environment:
* ESIGNET_UI_BASE_URL
* CLIENT_ID
Expand Down
2 changes: 0 additions & 2 deletions helm/mock-identity-system/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,6 @@ extraEnvVars:
key: security-pin
- name: hsm_local_dir_name
value: hsm-client
- name: MOSIP_ESIGNET_MOCK_SUPPORTED_FIELDS
value: individualId,password

## ConfigMap with extra environment variables that used
##
Expand Down
24 changes: 16 additions & 8 deletions mock-identity-system/README.md

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions mock-identity-system/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<swagger.version>2.9.2</swagger.version>
<springdoc.version>1.8.0</springdoc.version>
<springdoc.version>1.8.0</springdoc.version>
<doclint>none</doclint>

Expand All @@ -62,6 +63,7 @@
<logback.version>1.2.3</logback.version>
<h2-database-engine.version>1.4.200</h2-database-engine.version>

<springdoc.version>1.8.0</springdoc.version>
<springdoc.version>1.8.0</springdoc.version>
<spring.boot.version>2.0.2.RELEASE</spring.boot.version>
</properties>
Expand Down Expand Up @@ -148,6 +150,42 @@
</exclusions>
</dependency>

<dependency>
<groupId>com.networknt</groupId>
<artifactId>json-schema-validator</artifactId>
<version>1.5.1</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.12.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.12.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.12.1</version>
</dependency>
</dependency>

<dependency>
<groupId>com.networknt</groupId>
<artifactId>json-schema-validator</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,12 @@ public KycAuthResponseDto kycAuth(String relyingPartyId, String clientId, KycAut
}

KycAuth kycAuth = saveKycAuthTransaction(kycAuthDto.getTransactionId(), relyingPartyId,
kycAuthDto.getIndividualId());
kycAuthDto.getIndividualId(), identityData);

KycAuthResponseDto kycAuthResponseDto = new KycAuthResponseDto();
kycAuthResponseDto.setAuthStatus(authStatus);
kycAuthResponseDto.setKycToken(kycAuth.getKycToken());
if (psutField.equals("psut")) {
kycAuthResponseDto.setPartnerSpecificUserToken(kycAuth.getPartnerSpecificUserToken());
} else {
kycAuthResponseDto.setPartnerSpecificUserToken(HelperUtil.getIdentityDataValue(identityData, psutField, defaultLanguage));
}
kycAuthResponseDto.setPartnerSpecificUserToken(kycAuth.getPartnerSpecificUserToken());
if(kycAuthDto.isClaimMetadataRequired()) {
kycAuthResponseDto.setClaimMetadata(getVerifiedClaimMetadata(kycAuthDto.getIndividualId(), identityData));
}
Expand Down Expand Up @@ -371,12 +367,15 @@ private RSAKey getRelyingPartyPublicKey(String relyingPartyId) {
throw new MockIdentityException("jwe-not-implemented");
}

private KycAuth saveKycAuthTransaction(String transactionId, String relyingPartyId, String individualId) {
private KycAuth saveKycAuthTransaction(String transactionId, String relyingPartyId, String individualId, JsonNode identityData) {
String kycToken = HelperUtil.generateB64EncodedHash(ALGO_SHA3_256, UUID.randomUUID().toString());
String psut;
try {
psut = HelperUtil.generateB64EncodedHash(ALGO_SHA3_256,
String.format(PSUT_FORMAT, individualId, relyingPartyId));
if (psutField.equals("psut")) {
psut = HelperUtil.generateB64EncodedHash(ALGO_SHA3_256, String.format(PSUT_FORMAT, individualId, relyingPartyId));
} else {
psut = HelperUtil.getIdentityDataValue(identityData, psutField, defaultLanguage);
}
} catch (Exception e) {
log.error("Failed to generate PSUT", e);
throw new MockIdentityException("mock-ida-004");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
# mosip.api.public.url


##-----------------------------------------Mock-identity-system properties----------------------------------------------

mosip.mock.ida.identity.schema.url=classpath:/mock-identity-schema.json
mosip.mock.ida.update-identity.non-mandatory.fields={"fullName","givenName","familyName","middleName","nickName","preferredUsername","gender","streetAddress","locality","region","country","pin","preferredLang","dateOfBirth","postalCode","encodedPhoto","email","phone","zoneInfo","locale","password"}


##-----------------------------------------Mock-identity-system properties----------------------------------------------

mosip.mock.ida.identity.schema.url=classpath:/mock-identity-schema.json
Expand Down Expand Up @@ -110,9 +116,12 @@ spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
mosip.esignet.mock.authenticator.ida.otp-channels=email,phone



mosip.mock.ida.kba.default.field-language=eng




#Related to health check of hsm
mosip.kernel.keymgr.hsm.health.check.enabled=false
mosip.kernel.keymgr.hsm.health.key.app-id=MOCK_AUTHENTICATION_SERVICE
Expand All @@ -122,9 +131,13 @@ mosip.kernel.keymgr.hsm.healthkey.ref-id=HEALTH_KEY
# configured to use any other identity fields eg: individualId
mosip.mock.ida.kyc.psut.field=psut

## Value to be used as partner specific token, if configured value is psut, token is generated using individualId & partnerId. if it is
# configured to use any other identity fields eg: individualId
mosip.mock.ida.kyc.psut.field=psut

##---------------------------------kbi Configurations------------------------------------------------------

#We can use any field from the IdentityData for kbi
#We can use any field from the IdentityData for KBI
mosip.esignet.authenticator.auth-factor.kbi.field-details={{"id":"phone", "type":"text", "format":""},{"id":"email", "type":"text", "format":""},{"id":"dateOfBirth", "type":"date", "format":"yyyy-MM-dd"}}
mosip.esignet.authenticator.auth-factor.kbi.field-language=eng
mosip.mock.ida.kbi.default.field-language=eng
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
##-----------------------------------------local database properties --------------------------------------------------------
##-----------------------------------------local database properties --------------------------------------------------------

mosip.mockidentitysystem.database.hostname=localhost
mosip.mockidentitysystem.database.port=5455
mosip.mockidentitysystem.database.name=mosip_mockidentitysystem
mosip.mockidentitysystem.database.username=postgres
mosip.mockidentitysystem.database.hostname=localhost
mosip.mockidentitysystem.database.port=5455
mosip.mockidentitysystem.database.name=mosip_mockidentitysystem
mosip.mockidentitysystem.database.username=postgres
spring.datasource.password=postgres

## Keymanager configuration

## Keymanager configuration
mosip.kernel.keymanager.hsm.keystore-type=PKCS12
mosip.kernel.keymanager.hsm.config-path=mock_local.p12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ public void kycAuth_withValidKbiChallengeCustomPSUTfield_thenPass() {
identityData.setFullName(List.of(languageValue));
Mockito.when(identityService.getIdentityV2(Mockito.anyString())).thenReturn(this.identityData);

Mockito.when(authRepository.save(Mockito.any())).thenReturn(new KycAuth());
KycAuth kycAuth = new KycAuth();
kycAuth.setPartnerSpecificUserToken("8267411571");
Mockito.when(authRepository.save(Mockito.any())).thenReturn(kycAuth);

KycAuthResponseDto kycAuthResponseDto = authenticationService.kycAuth("relyingPartyId", "clientId", kycAuthDto);
Assert.assertEquals("8267411571", kycAuthResponseDto.getPartnerSpecificUserToken());
Expand Down
2 changes: 2 additions & 0 deletions mock-relying-party-ui-bank/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

REACT_APP_TOAST_TIMEOUT_IN_SEC=5
1 change: 1 addition & 0 deletions mock-relying-party-ui-bank/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_MOCK_RELYING_PARTY_SERVER_URL=http://localhost:8888
23 changes: 23 additions & 0 deletions mock-relying-party-ui-bank/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
Loading