diff --git a/.github/workflows/chart-lint-publish.yml b/.github/workflows/chart-lint-publish.yml
index 80f2b96c2..f0b733345 100644
--- a/.github/workflows/chart-lint-publish.yml
+++ b/.github/workflows/chart-lint-publish.yml
@@ -6,7 +6,7 @@ on:
pull_request:
types: [opened, reopened, synchronize]
paths:
- - 'charts/**'
+ - 'helm/**'
workflow_dispatch:
inputs:
IGNORE_CHARTS:
diff --git a/.github/workflows/push-trigger.yml b/.github/workflows/push-trigger.yml
index c8a4b17cb..d5a4ae04b 100644
--- a/.github/workflows/push-trigger.yml
+++ b/.github/workflows/push-trigger.yml
@@ -130,14 +130,61 @@ jobs:
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
- build-dockers_apitest_esignet:
+ build-apitest-esignet-local:
needs: build-maven-apitest-esignet
+ runs-on: ubuntu-latest
+ env:
+ NAMESPACE: ${{ secrets.dev_namespace_docker_hub }}
+ SERVICE_NAME: apitest-esignet
+ SERVICE_LOCATION: apitest
+ BUILD_ARTIFACT: apitest-esignet-local
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v1
+ with:
+ ref: ${{ github.ref }}
+ java-version: 11
+ server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
+ settings-path: ${{ github.workspace }} # location for the settings.xml file
+ - name: Setup the settings file for ossrh server
+ run: echo " ossrh ${{secrets.ossrh_user}} ${{secrets.ossrh_secret}} ossrh true gpg2 ${{secrets.gpg_secret}} allow-snapshots true snapshots-repo https://oss.sonatype.org/content/repositories/snapshots false true releases-repo https://oss.sonatype.org/service/local/staging/deploy/maven2 true false sonar . https://sonarcloud.io false " > $GITHUB_WORKSPACE/settings.xml
+ - name: Build Automationtests with Maven
+ run: |
+ cd ${{ env.SERVICE_LOCATION}}
+ mvn clean package -s $GITHUB_WORKSPACE/settings.xml
+ - name: Copy configuration files to target directory.
+ run: |
+ cp -r ${{ env.SERVICE_LOCATION}}/target/classes/config ${{ env.SERVICE_LOCATION}}/target/config
+ cp -r ${{ env.SERVICE_LOCATION}}/testNgXmlFiles ${{ env.SERVICE_LOCATION}}/target/testNgXmlFiles
+ - name: Ready the springboot artifacts
+ if: ${{ !contains(github.ref, 'master') || !contains(github.ref, 'main') }}
+ run: |
+ ## FIND JARS & COPY ONLY EXECUTABLE JARs STORED UNDER TARGET DIRECTORY
+ find ${{ env.SERVICE_LOCATION }} -path '*/target/*' -exec zip ${{ env.BUILD_ARTIFACT }}.zip {} +
+ - name: Upload the springboot jars
+ if: ${{ !contains(github.ref, 'master') || !contains(github.ref, 'main') }}
+ uses: actions/upload-artifact@v3
+ with:
+ name: ${{ env.BUILD_ARTIFACT }}
+ path: ${{ env.BUILD_ARTIFACT }}.zip
+ - uses: 8398a7/action-slack@v3
+ with:
+ status: ${{ job.status }}
+ fields: repo,message,author,commit,workflow,job # selectable (default: repo,message)
+ env:
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
+ if: failure() # Pick up events even if the job fails or is canceled.
+
+ build-dockers_apitest_esignet:
+ needs: build-apitest-esignet-local
strategy:
matrix:
include:
- SERVICE_LOCATION: 'apitest'
SERVICE_NAME: 'apitest-esignet'
- BUILD_ARTIFACT: 'apitest-esignet'
+ BUILD_ARTIFACT: 'apitest-esignet-local'
+ ONLY_DOCKER: true
fail-fast: false
name: ${{ matrix.SERVICE_NAME }}
uses: mosip/kattu/.github/workflows/docker-build.yml@master
@@ -145,6 +192,7 @@ jobs:
SERVICE_LOCATION: ${{ matrix.SERVICE_LOCATION }}
SERVICE_NAME: ${{ matrix.SERVICE_NAME }}
BUILD_ARTIFACT: ${{ matrix.BUILD_ARTIFACT }}
+ ONLY_DOCKER: ${{ matrix.ONLY_DOCKER }}
secrets:
DEV_NAMESPACE_DOCKER_HUB: ${{ secrets.DEV_NAMESPACE_DOCKER_HUB }}
ACTOR_DOCKER_HUB: ${{ secrets.ACTOR_DOCKER_HUB }}
@@ -164,4 +212,4 @@ jobs:
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
\ No newline at end of file
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
diff --git a/apitest/Dockerfile b/apitest/Dockerfile
index bc00e7589..287c09bd2 100644
--- a/apitest/Dockerfile
+++ b/apitest/Dockerfile
@@ -37,7 +37,7 @@ WORKDIR /home/${container_user}
ENV work_dir=/home/${container_user}
-ADD ./target/ $work_dir
+ADD ./apitest/target/ $work_dir
ADD entrypoint.sh $work_dir/entrypoint.sh
diff --git a/apitest/pom.xml b/apitest/pom.xml
index 84dbc0e7e..9f32a2da2 100644
--- a/apitest/pom.xml
+++ b/apitest/pom.xml
@@ -8,7 +8,7 @@
apitest-esignet
Parent project of apitest-esignet
https://github.com/mosip/esignet
- 1.2.0.1-SNAPSHOT
+ 1.2.1-SNAPSHOT
@@ -386,9 +386,9 @@
- io.mosip.testrig.apirig.automationtests.commons
+ io.mosip.testrig.apirig.apitest.commons
apitest-commons
- 1.2.0.1-SNAPSHOT
+ 1.2.1-SNAPSHOT
diff --git a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/EsignetBioAuth.java b/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/EsignetBioAuth.java
index c89d990c9..060265d6a 100644
--- a/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/EsignetBioAuth.java
+++ b/apitest/src/main/java/io/mosip/testrig/apirig/testscripts/EsignetBioAuth.java
@@ -111,12 +111,20 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad
request.remove(GlobalConstants.IDENTITYREQUEST);
}
identityRequest = buildIdentityRequest(identityRequest);
+ identityRequest = inputJsonKeyWordHandeler(identityRequest, testCaseName);
JSONObject identityReqJson = new JSONObject(identityRequest);
identityRequestTemplate = identityReqJson.getString("identityRequestTemplate");
identityReqJson.remove("identityRequestTemplate");
identityRequestEncUrl = identityReqJson.getString("identityRequestEncUrl");
identityReqJson.remove("identityRequestEncUrl");
+
+ if (identityReqJson.has("transactionId")) {
+ String oidcTransactionId = AdminTestUtil.getAuthTransactionId(identityReqJson.getString("transactionId"));
+ if (oidcTransactionId != null && !oidcTransactionId.isBlank())
+ identityReqJson.put("transactionId", oidcTransactionId);
+ }
+
identityRequest = getJsonFromTemplate(identityReqJson.toString(), identityRequestTemplate);
if (identityRequest.contains("$DOMAINURI$")) {
String domainUrl = ApplnURI.replace("api-internal", GlobalConstants.ESIGNET);
@@ -187,7 +195,7 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad
} catch (SkipException e) {
throw new SkipException(e.getMessage());
} catch (Exception e) {
- logger.error(e.getMessage());
+ throw new AdminTestException(e.getMessage());
}
}
diff --git a/apitest/src/main/resources/esignet/AddIdentity/AddIdentity.yml b/apitest/src/main/resources/esignet/AddIdentity/AddIdentity.yml
index bc572f354..c57883c96 100644
--- a/apitest/src/main/resources/esignet/AddIdentity/AddIdentity.yml
+++ b/apitest/src/main/resources/esignet/AddIdentity/AddIdentity.yml
@@ -269,6 +269,33 @@ AddIdentity:
"status":"ACTIVATED"
}'
+ ESignet_AddIdentity_Linked_Consent_User2_smoke_Pos:
+ endPoint: /idrepository/v1/identity/
+ role: idrepo
+ restMethod: post
+ inputTemplate: esignet/AddIdentity/addIdentity_$LANGNUMBER$
+ outputTemplate: esignet/AddIdentity/addIdentityResult
+ input: '{
+ "value": "$BIOVALUE$",
+ "id": "mosip.id.create",
+ "registrationId": "$RID$",
+ "biometricReferenceId": "23452353",
+ "UIN": "$UIN$",
+ "dateOfBirth": "1992/04/15",
+ "postalCode": "14022",
+ "email": "ESignet_AddIdentity_Linked_Consent_User2_smoke_Pos@mosip.net",
+ "phone": "9876543210",
+ "referenceIdentityNumber": "6789545678878",
+ "version": "v1",
+ "introducerRID": "212124324784879",
+ "introducerUIN": "212124324784879",
+ "category": "individualBiometrics",
+ "requesttime": "$TIMESTAMP$"
+}'
+ output: '{
+ "status":"ACTIVATED"
+}'
+
ESignet_AddIdentity_Linked_Consent_Vid_smoke_Pos:
endPoint: /idrepository/v1/identity/
role: idrepo
@@ -296,6 +323,33 @@ AddIdentity:
"status":"ACTIVATED"
}'
+ ESignet_AddIdentity_Linked_Consent_User2_Vid_smoke_Pos:
+ endPoint: /idrepository/v1/identity/
+ role: idrepo
+ restMethod: post
+ inputTemplate: esignet/AddIdentity/addIdentity_$LANGNUMBER$
+ outputTemplate: esignet/AddIdentity/addIdentityResult
+ input: '{
+ "value": "$BIOVALUE$",
+ "id": "mosip.id.create",
+ "registrationId": "$RID$",
+ "biometricReferenceId": "23452353",
+ "UIN": "$UIN$",
+ "dateOfBirth": "1992/04/15",
+ "postalCode": "14022",
+ "email": "ESignet_AddIdentity_Linked_Consent_User2_Vid_smoke_Pos@mosip.net",
+ "phone": "9876543210",
+ "referenceIdentityNumber": "6789545678878",
+ "version": "v1",
+ "introducerRID": "212124324784879",
+ "introducerUIN": "212124324784879",
+ "category": "individualBiometrics",
+ "requesttime": "$TIMESTAMP$"
+}'
+ output: '{
+ "status":"ACTIVATED"
+}'
+
ESignet_AddIdentity_BioAuth_smoke_Pos:
endPoint: /idrepository/v1/identity/
role: idrepo
diff --git a/apitest/src/main/resources/esignet/AuthenticateUser/AuthenticateUser.yml b/apitest/src/main/resources/esignet/AuthenticateUser/AuthenticateUser.yml
index ed16bd8e1..2930bd815 100644
--- a/apitest/src/main/resources/esignet/AuthenticateUser/AuthenticateUser.yml
+++ b/apitest/src/main/resources/esignet/AuthenticateUser/AuthenticateUser.yml
@@ -227,7 +227,7 @@ AuthenticateUser:
output: '{
"errors": [
{
- "errorCode": "IDA-OTA-004",
+ "errorCode": "IDA-OTA-012",
"errorMessage": "$IGNORE$"
}
],
@@ -749,6 +749,7 @@ AuthenticateUser:
endPoint: /v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge_length
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/AuthenticateUser/AuthenticateUser
@@ -773,7 +774,7 @@ AuthenticateUser:
output: '{
"errors": [
{
- "errorCode": "auth_factor_mismatch",
+ "errorCode": "invalid_challenge_length",
"errorMessage": "$IGNORE$"
}
],
@@ -788,6 +789,7 @@ AuthenticateUser:
endPoint: /v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_auth_factor_type
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/AuthenticateUser/AuthenticateUser
@@ -827,6 +829,7 @@ AuthenticateUser:
endPoint: /v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_auth_factor_type
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/AuthenticateUser/AuthenticateUser
@@ -890,7 +893,7 @@ AuthenticateUser:
output: '{
"errors": [
{
- "errorCode": "auth_factor_mismatch",
+ "errorCode": "invalid_challenge_length",
"errorMessage": "$IGNORE$"
}
],
@@ -905,6 +908,7 @@ AuthenticateUser:
endPoint: /v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge_length
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/AuthenticateUser/AuthenticateUser
@@ -929,7 +933,7 @@ AuthenticateUser:
output: '{
"errors": [
{
- "errorCode": "auth_factor_mismatch",
+ "errorCode": "invalid_challenge_length",
"errorMessage": "$IGNORE$"
}
],
@@ -968,7 +972,7 @@ AuthenticateUser:
output: '{
"errors": [
{
- "errorCode": "IDA-OTA-004",
+ "errorCode": "invalid_challenge_length",
"errorMessage": "$IGNORE$"
}
],
@@ -983,6 +987,7 @@ AuthenticateUser:
endPoint: /v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/AuthenticateUser/AuthenticateUser
@@ -1022,6 +1027,7 @@ AuthenticateUser:
endPoint: /v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/AuthenticateUser/AuthenticateUser
@@ -1085,7 +1091,7 @@ AuthenticateUser:
output: '{
"errors": [
{
- "errorCode": "IDA-OTA-004",
+ "errorCode": "invalid_challenge_length",
"errorMessage": "$IGNORE$"
}
],
@@ -1703,7 +1709,7 @@ AuthenticateUser:
output: '{
"errors": [
{
- "errorCode": "auth_factor_mismatch",
+ "errorCode": "invalid_challenge_length",
"errorMessage": "$IGNORE$"
}
],
@@ -1718,6 +1724,7 @@ AuthenticateUser:
endPoint: /v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_auth_factor_type
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/AuthenticateUser/AuthenticateUser
@@ -1757,6 +1764,7 @@ AuthenticateUser:
endPoint: /v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_auth_factor_type
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/AuthenticateUser/AuthenticateUser
@@ -1796,6 +1804,7 @@ AuthenticateUser:
endPoint: /v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge_length
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/AuthenticateUser/AuthenticateUser
@@ -1820,7 +1829,7 @@ AuthenticateUser:
output: '{
"errors": [
{
- "errorCode": "auth_factor_mismatch",
+ "errorCode": "invalid_challenge_length",
"errorMessage": "$IGNORE$"
}
],
@@ -1835,6 +1844,7 @@ AuthenticateUser:
endPoint: /v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge_length,invalid_auth_factor_type_format
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/AuthenticateUser/AuthenticateUser
@@ -1859,7 +1869,7 @@ AuthenticateUser:
output: '{
"errors": [
{
- "errorCode": "auth_factor_mismatch",
+ "errorCode": "invalid_challenge_length",
"errorMessage": "$IGNORE$"
}
],
@@ -1898,7 +1908,7 @@ AuthenticateUser:
output: '{
"errors": [
{
- "errorCode": "IDA-OTA-004",
+ "errorCode": "invalid_challenge_length",
"errorMessage": "$IGNORE$"
}
],
@@ -1913,6 +1923,7 @@ AuthenticateUser:
endPoint: /v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/AuthenticateUser/AuthenticateUser
@@ -1952,6 +1963,7 @@ AuthenticateUser:
endPoint: /v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/AuthenticateUser/AuthenticateUser
@@ -1991,6 +2003,7 @@ AuthenticateUser:
endPoint: /v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge_length
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/AuthenticateUser/AuthenticateUser
@@ -2015,7 +2028,7 @@ AuthenticateUser:
output: '{
"errors": [
{
- "errorCode": "IDA-OTA-004",
+ "errorCode": "invalid_challenge_length",
"errorMessage": "$IGNORE$"
}
],
diff --git a/apitest/src/main/resources/esignet/BioAuthIdp/BioAuthIdp.yml b/apitest/src/main/resources/esignet/BioAuthIdp/BioAuthIdp.yml
index 6a3da0d16..5c53cb466 100644
--- a/apitest/src/main/resources/esignet/BioAuthIdp/BioAuthIdp.yml
+++ b/apitest/src/main/resources/esignet/BioAuthIdp/BioAuthIdp.yml
@@ -30,7 +30,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467171",
"type": "Face",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_13all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -70,7 +70,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_2all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -109,7 +109,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_3all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -148,7 +148,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_4all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -187,7 +187,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_5all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -226,7 +226,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_6all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -265,7 +265,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_7all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -304,7 +304,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_8all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -343,7 +343,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_9all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -382,7 +382,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_10all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -421,7 +421,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Iris",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_11all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -460,7 +460,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Iris",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_12all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -499,7 +499,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467171",
"type": "Face",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_14all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -538,7 +538,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_15all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -577,7 +577,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_16all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -616,7 +616,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_17all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -655,7 +655,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_18all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -694,7 +694,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_19all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -733,7 +733,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_20all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -772,7 +772,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_21all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -811,7 +811,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_22all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -850,7 +850,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Finger",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_23all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -889,7 +889,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Iris",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_24all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
@@ -928,7 +928,7 @@ BioAuth:
"model": "4d36e96c-e325-11ce-bfc1-08002be10318",
"serialNo": "78467175",
"type": "Iris",
- "transactionId": "$TRANSACTIONID$",
+ "transactionId": "$ID:OAuthDetailsRequest_25all_Valid_Smoke_sid_transactionId$",
"identityRequestTemplate": "esignet/BioAuthIdp/BioAuthIdentityEncrypt",
"identityRequestEncUrl": "/idauthentication/v1/internal/encrypt"
}
diff --git a/apitest/src/main/resources/esignet/BioAuthIdp/BioNonAuth.yml b/apitest/src/main/resources/esignet/BioAuthIdp/BioNonAuth.yml
index 90e63d63a..6190e08d9 100644
--- a/apitest/src/main/resources/esignet/BioAuthIdp/BioNonAuth.yml
+++ b/apitest/src/main/resources/esignet/BioAuthIdp/BioNonAuth.yml
@@ -425,7 +425,7 @@ BioNonAuth:
output: '{
"errors": [
{
- "errorCode": "auth_factor_mismatch",
+ "errorCode": "invalid_challenge_length",
"errorMessage": "$IGNORE$"
}
]
@@ -943,7 +943,7 @@ BioNonAuth:
output: '{
"errors": [
{
- "errorCode": "auth_factor_mismatch",
+ "errorCode": "invalid_challenge_length",
"errorMessage": "$IGNORE$"
}
]
diff --git a/apitest/src/main/resources/esignet/GenerateLinkCode/GenerateLinkCode.yml b/apitest/src/main/resources/esignet/GenerateLinkCode/GenerateLinkCode.yml
index 51efc7617..3329a181d 100644
--- a/apitest/src/main/resources/esignet/GenerateLinkCode/GenerateLinkCode.yml
+++ b/apitest/src/main/resources/esignet/GenerateLinkCode/GenerateLinkCode.yml
@@ -91,38 +91,6 @@ GenerateLinkCode:
}'
output: '{
-}'
-
- ESignet_GenerateLinkCode_Consent_uin_SameClaim_NoBinding_all_Valid_Smoke_sid:
- endPoint: /v1/esignet/linked-authorization/link-code
- role: resident
- checkErrorsOnlyInResponse: true
- restMethod: post
- validityCheckRequired: true
- inputTemplate: esignet/GenerateLinkCode/GenerateLinkCode
- outputTemplate: esignet/GenerateLinkCode/GenerateLinkCodeResult
- input: '{
- "requestTime": "$TIMESTAMP$",
- "transactionId": "$ID:OAuthDetailsRequest_LinkAuth_Consent_SameClaim_Uin_NoBinding_Valid_Smoke_sid_transactionId$"
-}'
- output: '{
-
-}'
-
- ESignet_GenerateLinkCode_Consent_Vid_SameClaim_NoBinding_all_Valid_Smoke_sid:
- endPoint: /v1/esignet/linked-authorization/link-code
- role: resident
- checkErrorsOnlyInResponse: true
- restMethod: post
- validityCheckRequired: true
- inputTemplate: esignet/GenerateLinkCode/GenerateLinkCode
- outputTemplate: esignet/GenerateLinkCode/GenerateLinkCodeResult
- input: '{
- "requestTime": "$TIMESTAMP$",
- "transactionId": "$ID:OAuthDetailsRequest_LinkAuth_Consent_SameClaim_Uin_NoBinding_Valid_Smoke_sid_transactionId$"
-}'
- output: '{
-
}'
ESignet_GenerateLinkCode_Invalid_RequestTime_Neg:
diff --git a/apitest/src/main/resources/esignet/GenerateVID/createGenerateVID.yml b/apitest/src/main/resources/esignet/GenerateVID/createGenerateVID.yml
index f3e3729c8..f234de51b 100644
--- a/apitest/src/main/resources/esignet/GenerateVID/createGenerateVID.yml
+++ b/apitest/src/main/resources/esignet/GenerateVID/createGenerateVID.yml
@@ -454,6 +454,41 @@ GenerateVID:
}
}'
+ ESignetRes_Generate_Perpetual_VID_Linked_Consent_User2_Valid_Smoke_sid:
+ endPoint: /resident/v1/vid
+ role: resident
+ checkErrorsOnlyInResponse: true
+ restMethod: post
+ inputTemplate: esignet/GenerateVID/createGenerateVID
+ outputTemplate: esignet/GenerateVID/createGenerateVIDResult
+ input: '{
+ "transactionID": "$TRANSACTIONID$",
+ "individualId": "$ID:AddIdentity_Linked_Consent_User2_Vid_smoke_Pos_UIN$",
+ "individualIdType": "UIN",
+ "requesttime": "$TIMESTAMP$",
+ "id": "mosip.resident.vid",
+ "version": "v1",
+ "vidType": "Perpetual",
+ "otp": "$ID:AddIdentity_Linked_Consent_User2_Vid_smoke_Pos_EMAIL$",
+ "sendOtp":{
+ "transactionID": "$TRANSACTIONID$",
+ "requestTime": "$TIMESTAMP$",
+ "individualId": "$ID:AddIdentity_Linked_Consent_User2_Vid_smoke_Pos_UIN$",
+ "individualIdType": "UIN",
+ "sendOtpReqTemplate": "esignet/SendOTPRes/createSendOTP",
+ "sendOtpEndPoint": "/resident/v1/req/otp"
+ }
+ }'
+ output: '{
+ "vid": "$IGNORE$",
+ "message": "$IGNORE$",
+ "sendOtpResp":{
+ "maskedMobile": "$IGNORE$",
+ "sendOtpResTemplate":"esignet/SendOTPRes/createSendOTPResult",
+ "maskedEmail": "$IGNORE$"
+ }
+}'
+
ESignetRes_Generate_Perpetual_VID_VCI_Valid_Smoke_sid:
endPoint: /resident/v1/vid
role: resident
diff --git a/apitest/src/main/resources/esignet/GetLinkStatus/GetLinkStatus.yml b/apitest/src/main/resources/esignet/GetLinkStatus/GetLinkStatus.yml
index 8b5e23458..fb4cf57f5 100644
--- a/apitest/src/main/resources/esignet/GetLinkStatus/GetLinkStatus.yml
+++ b/apitest/src/main/resources/esignet/GetLinkStatus/GetLinkStatus.yml
@@ -97,40 +97,6 @@ GetLinkStatus:
}'
output: '{
-}'
-
- ESignet_GetLinkStatus_Consent_uin_SameClaim_NoBinding_all_Valid_Smoke:
- endPoint: /v1/esignet/linked-authorization/link-status
- role: resident
- checkErrorsOnlyInResponse: true
- restMethod: post
- validityCheckRequired: true
- inputTemplate: esignet/GetLinkStatus/GetLinkStatus
- outputTemplate: esignet/GetLinkStatus/GetLinkStatusResult
- input: '{
- "requestTime": "$TIMESTAMP$",
- "transactionId": "$ID:OAuthDetailsRequest_LinkAuth_Consent_SameClaim_Uin_NoBinding_Valid_Smoke_sid_transactionId$",
- "linkCode": "$ID:GenerateLinkCode_Consent_uin_SameClaim_NoBinding_all_Valid_Smoke_sid_linkCode$"
-}'
- output: '{
-
-}'
-
- ESignet_GetLinkStatus_Consent_Vid_SameClaim_NoBinding_all_Valid_Smoke:
- endPoint: /v1/esignet/linked-authorization/link-status
- role: resident
- checkErrorsOnlyInResponse: true
- restMethod: post
- validityCheckRequired: true
- inputTemplate: esignet/GetLinkStatus/GetLinkStatus
- outputTemplate: esignet/GetLinkStatus/GetLinkStatusResult
- input: '{
- "requestTime": "$TIMESTAMP$",
- "transactionId": "$ID:OAuthDetailsRequest_LinkAuth_Consent_SameClaim_Vid_NoBinding_Valid_Smoke_sid_transactionId$",
- "linkCode": "$ID:GenerateLinkCode_Consent_Vid_SameClaim_NoBinding_all_Valid_Smoke_sid_linkCode$"
-}'
- output: '{
-
}'
ESignet_GetLinkStatus_Invalid_RequestTime_Neg:
diff --git a/apitest/src/main/resources/esignet/LinkTransaction/LinkTransaction.yml b/apitest/src/main/resources/esignet/LinkTransaction/LinkTransaction.yml
index cf130f1dc..b9aad43a5 100644
--- a/apitest/src/main/resources/esignet/LinkTransaction/LinkTransaction.yml
+++ b/apitest/src/main/resources/esignet/LinkTransaction/LinkTransaction.yml
@@ -91,38 +91,6 @@ LinkTransaction:
}'
output: '{
-}'
-
- ESignet_LinkTransaction_Consent_uin_SameClaim_NoBinding_all_Valid_Smoke_sid:
- endPoint: /v1/esignet/linked-authorization/link-transaction
- role: resident
- checkErrorsOnlyInResponse: true
- restMethod: post
- validityCheckRequired: true
- inputTemplate: esignet/LinkTransaction/LinkTransaction
- outputTemplate: esignet/LinkTransaction/LinkTransactionResult
- input: '{
- "requestTime": "$TIMESTAMP$",
- "linkCode": "$ID:GenerateLinkCode_Consent_uin_SameClaim_NoBinding_all_Valid_Smoke_sid_linkCode$"
-}'
- output: '{
-
-}'
-
- ESignet_LinkTransaction_Consent_Vid_SameClaim_NoBinding_all_Valid_Smoke_sid:
- endPoint: /v1/esignet/linked-authorization/link-transaction
- role: resident
- checkErrorsOnlyInResponse: true
- restMethod: post
- validityCheckRequired: true
- inputTemplate: esignet/LinkTransaction/LinkTransaction
- outputTemplate: esignet/LinkTransaction/LinkTransactionResult
- input: '{
- "requestTime": "$TIMESTAMP$",
- "linkCode": "$ID:GenerateLinkCode_Consent_Vid_SameClaim_NoBinding_all_Valid_Smoke_sid_linkCode$"
-}'
- output: '{
-
}'
ESignet_LinkTransaction_Invalid_RequestTime_Neg:
diff --git a/apitest/src/main/resources/esignet/LinkedAuthenticationWla/LinkedAuthenticationWla.yml b/apitest/src/main/resources/esignet/LinkedAuthenticationWla/LinkedAuthenticationWla.yml
index a4b844f70..9a3e3d6a9 100644
--- a/apitest/src/main/resources/esignet/LinkedAuthenticationWla/LinkedAuthenticationWla.yml
+++ b/apitest/src/main/resources/esignet/LinkedAuthenticationWla/LinkedAuthenticationWla.yml
@@ -112,7 +112,7 @@ LinkedAuthenticationWla:
input: '{
"requestTime": "$TIMESTAMP$",
"linkTransactionId": "$ID:LinkTransaction_Consent_uin_User2_all_Valid_Smoke_sid_linkTransactionId$",
- "individualId": "$ID:AddIdentity_Linked_Consent_smoke_Pos_UIN$",
+ "individualId": "$ID:AddIdentity_Linked_Consent_User2_smoke_Pos_UIN$",
"authFactorType": "WLA",
"challenge": "$WLATOKENCONSENTUSER2$",
"format": "jwt",
@@ -120,7 +120,7 @@ LinkedAuthenticationWla:
"apiKey": "$ID:GenerateApiKeyKyc_Valid_Smoke_sid_apiKey$",
"partnerId": "$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$",
"requestTime": "$TIMESTAMP$",
- "individualId": "$ID:AddIdentity_Linked_Consent_smoke_Pos_UIN$",
+ "individualId": "$ID:AddIdentity_Linked_Consent_User2_smoke_Pos_UIN$",
"otpChannels": [{channel: "email"},{channel: "phone"}],
"sendOtpReqTemplate": "esignet/SendBindingOtp/SendBindingOtp",
"sendOtpEndPoint": "/v1/esignet/binding/binding-otp",
@@ -129,11 +129,11 @@ LinkedAuthenticationWla:
"apiKey": "$ID:GenerateApiKeyKyc_Valid_Smoke_sid_apiKey$",
"partnerId": "$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$",
"requestTime": "$TIMESTAMP$",
- "individualId": "$ID:AddIdentity_Linked_Consent_smoke_Pos_UIN$",
+ "individualId": "$ID:AddIdentity_Linked_Consent_User2_smoke_Pos_UIN$",
"authFactorType1": "WLA",
"format1": "jwt",
"authFactorType": "OTP",
- "challenge": "$ID:AddIdentity_Linked_Consent_smoke_Pos_EMAIL$",
+ "challenge": "$ID:AddIdentity_Linked_Consent_User2_smoke_Pos_EMAIL$",
"format": "alpha-numeric",
"publicKey": "$BINDINGCONSENTUSER2JWKKEY$",
"validateOtpReqTemplate": "esignet/WalletBinding/WalletBinding",
@@ -163,7 +163,7 @@ LinkedAuthenticationWla:
input: '{
"requestTime": "$TIMESTAMP$",
"linkTransactionId": "$ID:LinkTransaction_Consent_Vid_User2_all_Valid_Smoke_sid_linkTransactionId$",
- "individualId": "$ID:Generate_Perpetual_VID_Linked_Consent_Valid_Smoke_sid_vid$",
+ "individualId": "$ID:Generate_Perpetual_VID_Linked_Consent_User2_Valid_Smoke_sid_vid$",
"authFactorType": "WLA",
"challenge": "$WLATOKENCONSENTVIDUSER2$",
"format": "jwt",
@@ -171,7 +171,7 @@ LinkedAuthenticationWla:
"apiKey": "$ID:GenerateApiKeyKyc_Valid_Smoke_sid_apiKey$",
"partnerId": "$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$",
"requestTime": "$TIMESTAMP$",
- "individualId": "$ID:Generate_Perpetual_VID_Linked_Consent_Valid_Smoke_sid_vid$",
+ "individualId": "$ID:Generate_Perpetual_VID_Linked_Consent_User2_Valid_Smoke_sid_vid$",
"otpChannels": [{channel: "email"},{channel: "phone"}],
"sendOtpReqTemplate": "esignet/SendBindingOtp/SendBindingOtp",
"sendOtpEndPoint": "/v1/esignet/binding/binding-otp",
@@ -180,11 +180,11 @@ LinkedAuthenticationWla:
"apiKey": "$ID:GenerateApiKeyKyc_Valid_Smoke_sid_apiKey$",
"partnerId": "$ID:PartnerSelfRegistration_Kyc_Valid_Smoke_sid_partnerId$",
"requestTime": "$TIMESTAMP$",
- "individualId": "$ID:Generate_Perpetual_VID_Linked_Consent_Valid_Smoke_sid_vid$",
+ "individualId": "$ID:Generate_Perpetual_VID_Linked_Consent_User2_Valid_Smoke_sid_vid$",
"authFactorType1": "WLA",
"format1": "jwt",
"authFactorType": "OTP",
- "challenge": "$ID:AddIdentity_Linked_Consent_Vid_smoke_Pos_EMAIL$",
+ "challenge": "$ID:AddIdentity_Linked_Consent_User2_Vid_smoke_Pos_EMAIL$",
"format": "alpha-numeric",
"publicKey": "$BINDINGCONSENTVIDUSER2JWKKEY$",
"validateOtpReqTemplate": "esignet/WalletBinding/WalletBinding",
diff --git a/apitest/src/main/resources/esignet/LinkedAuthenticationWlaNoBinding/LinkedAuthenticationWla.hbs b/apitest/src/main/resources/esignet/LinkedAuthenticationWlaNoBinding/LinkedAuthenticationWla.hbs
deleted file mode 100644
index 86c04fe41..000000000
--- a/apitest/src/main/resources/esignet/LinkedAuthenticationWlaNoBinding/LinkedAuthenticationWla.hbs
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "requestTime": "{{requestTime}}",
- "request": {
- "linkedTransactionId": "{{linkTransactionId}}",
- "individualId": "{{individualId}}",
- "challengeList": [
- {
- "authFactorType": "{{authFactorType}}",
- "challenge": "{{challenge}}",
- "format": "{{format}}"
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/apitest/src/main/resources/esignet/LinkedAuthenticationWlaNoBinding/LinkedAuthenticationWla.yml b/apitest/src/main/resources/esignet/LinkedAuthenticationWlaNoBinding/LinkedAuthenticationWla.yml
deleted file mode 100644
index 2cc6f8468..000000000
--- a/apitest/src/main/resources/esignet/LinkedAuthenticationWlaNoBinding/LinkedAuthenticationWla.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-LinkedAuthenticationWlaNoBinding:
- ESignet_LinkedAuthenticationWlaNoBinding_Consent_SameClaim_uin_SCert_all_Valid_Smoke:
- endPoint: /v1/esignet/linked-authorization/v2/authenticate
- role: resident
- checkErrorsOnlyInResponse: true
- restMethod: post
- validityCheckRequired: true
- inputTemplate: esignet/LinkedAuthenticationWlaNoBinding/LinkedAuthenticationWla
- outputTemplate: esignet/LinkedConsent/LinkedAuthenticationConsentWla/LinkedAuthenticationConsentWlaResult
- input: '{
- "requestTime": "$TIMESTAMP$",
- "linkTransactionId": "$ID:LinkTransaction_Consent_uin_SameClaim_NoBinding_all_Valid_Smoke_sid_linkTransactionId$",
- "individualId": "$ID:AddIdentity_Linked_Consent_smoke_Pos_UIN$",
- "authFactorType": "WLA",
- "challenge": "$WLATOKENCONSENT$",
- "format": "jwt"
-}'
- output: '{
- "consentAction": "NOCAPTURE"
-}'
-
- ESignet_LinkedAuthenticationWlaNoBinding_Consent_SameClaim_Vid_SCert_all_Valid_Smoke:
- endPoint: /v1/esignet/linked-authorization/v2/authenticate
- role: resident
- checkErrorsOnlyInResponse: true
- restMethod: post
- validityCheckRequired: true
- inputTemplate: esignet/LinkedAuthenticationWlaNoBinding/LinkedAuthenticationWla
- outputTemplate: esignet/LinkedConsent/LinkedAuthenticationConsentWla/LinkedAuthenticationConsentWlaResult
- input: '{
- "requestTime": "$TIMESTAMP$",
- "linkTransactionId": "$ID:LinkTransaction_Consent_Vid_SameClaim_NoBinding_all_Valid_Smoke_sid_linkTransactionId$",
- "individualId": "$ID:Generate_Perpetual_VID_Linked_Consent_Valid_Smoke_sid_vid$",
- "authFactorType": "WLA",
- "challenge": "$WLATOKENCONSENTVID$",
- "format": "jwt"
-}'
- output: '{
- "consentAction": "NOCAPTURE"
-}'
\ No newline at end of file
diff --git a/apitest/src/main/resources/esignet/LinkedAuthenticationWlaNoBinding/LinkedAuthenticationWlaResult.hbs b/apitest/src/main/resources/esignet/LinkedAuthenticationWlaNoBinding/LinkedAuthenticationWlaResult.hbs
deleted file mode 100644
index 9e26dfeeb..000000000
--- a/apitest/src/main/resources/esignet/LinkedAuthenticationWlaNoBinding/LinkedAuthenticationWlaResult.hbs
+++ /dev/null
@@ -1 +0,0 @@
-{}
\ No newline at end of file
diff --git a/apitest/src/main/resources/esignet/OAuthDetailsRequestLinked/OAuthDetailsRequest.yml b/apitest/src/main/resources/esignet/OAuthDetailsRequestLinked/OAuthDetailsRequest.yml
index 3d676e4ea..82113bf71 100644
--- a/apitest/src/main/resources/esignet/OAuthDetailsRequestLinked/OAuthDetailsRequest.yml
+++ b/apitest/src/main/resources/esignet/OAuthDetailsRequestLinked/OAuthDetailsRequest.yml
@@ -141,54 +141,6 @@ OAuthDetailsRequestLinked:
}'
output: '{
-}'
-
- ESignet_OAuthDetailsRequest_LinkAuth_Consent_SameClaim_Uin_NoBinding_Valid_Smoke_sid:
- endPoint: /v1/esignet/authorization/oauth-details
- role: resident
- checkErrorsOnlyInResponse: true
- restMethod: post
- inputTemplate: esignet/OAuthDetailsRequest/OAuthDetailsRequest
- outputTemplate: esignet/OAuthDetailsRequest/OAuthDetailsRequestResult
- input: '{
- "requestTime": "$TIMESTAMP$",
- "clientId": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$",
- "scope": "openid resident-service profile",
- "responseType": "code",
- "redirectUri": "$IDPREDIRECTURI$",
- "display": "popup",
- "prompt": "login",
- "acrValues": "mosip:idp:acr:linked-wallet",
- "nonce": "973eieljzng",
- "state": "eree2311",
- "claimsLocales": "en"
-}'
- output: '{
-
-}'
-
- ESignet_OAuthDetailsRequest_LinkAuth_Consent_SameClaim_Vid_NoBinding_Valid_Smoke_sid:
- endPoint: /v1/esignet/authorization/oauth-details
- role: resident
- checkErrorsOnlyInResponse: true
- restMethod: post
- inputTemplate: esignet/OAuthDetailsRequest/OAuthDetailsRequest
- outputTemplate: esignet/OAuthDetailsRequest/OAuthDetailsRequestResult
- input: '{
- "requestTime": "$TIMESTAMP$",
- "clientId": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$",
- "scope": "openid resident-service profile",
- "responseType": "code",
- "redirectUri": "$IDPREDIRECTURI$",
- "display": "popup",
- "prompt": "login",
- "acrValues": "mosip:idp:acr:linked-wallet",
- "nonce": "973eieljzng",
- "state": "eree2311",
- "claimsLocales": "en"
-}'
- output: '{
-
}'
ESignet_OAuthDetailsRequest_LinkAuth_Other_Valid_Smoke_sid:
diff --git a/apitest/src/main/resources/esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC.yml b/apitest/src/main/resources/esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC.yml
index e85b18acf..ba0890e9f 100644
--- a/apitest/src/main/resources/esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC.yml
+++ b/apitest/src/main/resources/esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC.yml
@@ -228,6 +228,7 @@ AuthenticateUserSunBirdRCNegTC:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge_length
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC
@@ -244,7 +245,7 @@ AuthenticateUserSunBirdRCNegTC:
output: '{
"errors": [
{
- "errorCode": "auth_factor_mismatch"
+ "errorCode": "invalid_challenge_length"
}
]
}'
@@ -253,6 +254,7 @@ AuthenticateUserSunBirdRCNegTC:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_auth_factor_type
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC
@@ -278,6 +280,7 @@ AuthenticateUserSunBirdRCNegTC:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_auth_factor_type
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC
@@ -303,6 +306,7 @@ AuthenticateUserSunBirdRCNegTC:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge_length
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC
@@ -319,7 +323,7 @@ AuthenticateUserSunBirdRCNegTC:
output: '{
"errors": [
{
- "errorCode": "auth_factor_mismatch"
+ "errorCode": "invalid_challenge_length"
}
]
}'
@@ -328,6 +332,7 @@ AuthenticateUserSunBirdRCNegTC:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge_length
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC
@@ -344,7 +349,7 @@ AuthenticateUserSunBirdRCNegTC:
output: '{
"errors": [
{
- "errorCode": "auth_factor_mismatch"
+ "errorCode": "invalid_challenge_length"
}
]
}'
@@ -353,6 +358,7 @@ AuthenticateUserSunBirdRCNegTC:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_auth_factor_type
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC
@@ -378,6 +384,7 @@ AuthenticateUserSunBirdRCNegTC:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC
@@ -403,6 +410,7 @@ AuthenticateUserSunBirdRCNegTC:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC
@@ -478,6 +486,7 @@ AuthenticateUserSunBirdRCNegTC:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC
@@ -519,7 +528,7 @@ AuthenticateUserSunBirdRCNegTC:
output: '{
"errors": [
{
- "errorCode": "auth_failed"
+ "errorCode": "invalid_challenge_length"
}
]
}'
@@ -553,6 +562,7 @@ AuthenticateUserSunBirdRCNegTC:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge_format
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC
@@ -578,6 +588,7 @@ AuthenticateUserSunBirdRCNegTC:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge_format
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC
@@ -603,6 +614,7 @@ AuthenticateUserSunBirdRCNegTC:
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate
role: resident
restMethod: post
+ allowedErrorCodes: invalid_challenge_format
checkErrorsOnlyInResponse: true
validityCheckRequired: true
inputTemplate: esignet/SunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC/AuthenticateUserSunBirdRCNegTC
@@ -689,7 +701,7 @@ AuthenticateUserSunBirdRCNegTC:
output: '{
"errors": [
{
- "errorCode": "invalid_challenge_format"
+ "errorCode": "invalid_auth_factor_type_format"
}
]
}'
@@ -714,7 +726,7 @@ AuthenticateUserSunBirdRCNegTC:
output: '{
"errors": [
{
- "errorCode": "invalid_challenge_format"
+ "errorCode": "invalid_auth_factor_type_format"
}
]
}'
@@ -739,7 +751,7 @@ AuthenticateUserSunBirdRCNegTC:
output: '{
"errors": [
{
- "errorCode": "invalid_challenge_format"
+ "errorCode": "invalid_auth_factor_type_format"
}
]
}'
@@ -764,7 +776,7 @@ AuthenticateUserSunBirdRCNegTC:
output: '{
"errors": [
{
- "errorCode": "invalid_challenge_format"
+ "errorCode": "invalid_auth_factor_type_format"
}
]
}'
@@ -789,7 +801,7 @@ AuthenticateUserSunBirdRCNegTC:
output: '{
"errors": [
{
- "errorCode": "invalid_challenge_format"
+ "errorCode": "invalid_auth_factor_type_format"
}
]
}'
@@ -814,7 +826,7 @@ AuthenticateUserSunBirdRCNegTC:
output: '{
"errors": [
{
- "errorCode": "invalid_challenge_format"
+ "errorCode": "invalid_auth_factor_type_format"
}
]
}'
diff --git a/apitest/src/main/resources/esignet/VCINegTC/GetCredential/GetCredential.yml b/apitest/src/main/resources/esignet/VCINegTC/GetCredential/GetCredential.yml
index 88eb08b85..9057a5242 100644
--- a/apitest/src/main/resources/esignet/VCINegTC/GetCredential/GetCredential.yml
+++ b/apitest/src/main/resources/esignet/VCINegTC/GetCredential/GetCredential.yml
@@ -122,7 +122,7 @@ GetCredentialNegTC:
"proof_jwt": "$PROOFJWT$"
}'
output: '{
- "error": "unknown_error"
+ "error": "not_implemented"
}'
ESignet_GetCredential_uin_IdpAccessToken_Inval2_Format_Neg:
@@ -143,7 +143,7 @@ GetCredentialNegTC:
"proof_jwt": "$PROOFJWT$"
}'
output: '{
- "error": "unknown_error"
+ "error": "not_implemented"
}'
ESignet_GetCredential_uin_IdpAccessToken_Inval3_Format_Neg:
diff --git a/apitest/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredential.yml b/apitest/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredential.yml
index a1bdfee29..6fc0afa15 100644
--- a/apitest/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredential.yml
+++ b/apitest/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredential.yml
@@ -122,7 +122,7 @@ GetCredentialVidNegTC:
"proof_jwt": "$PROOFJWT$"
}'
output: '{
- "error": "unknown_error"
+ "error": "not_implemented"
}'
ESignet_GetCredential_Vid_IdpAccessToken_Inval2_Format_Neg:
@@ -143,7 +143,7 @@ GetCredentialVidNegTC:
"proof_jwt": "$PROOFJWT$"
}'
output: '{
- "error": "unknown_error"
+ "error": "not_implemented"
}'
ESignet_GetCredential_Vid_IdpAccessToken_Inval3_Format_Neg:
@@ -831,5 +831,5 @@ GetCredentialVidNegTC:
"proof_jwt": "$PROOFJWT$"
}'
output: '{
- "error":"invalid_proof"
+ "error":"vci_exchange_failed"
}'
\ No newline at end of file
diff --git a/apitest/src/main/resources/esignet/WalletBinding/WalletBinding.yml b/apitest/src/main/resources/esignet/WalletBinding/WalletBinding.yml
index 581782171..c5e5f8037 100644
--- a/apitest/src/main/resources/esignet/WalletBinding/WalletBinding.yml
+++ b/apitest/src/main/resources/esignet/WalletBinding/WalletBinding.yml
@@ -522,8 +522,7 @@ WalletBinding:
output: '{
"errors": [
{
- "errorCode": "invalid_auth_factor_type_or_challenge_format",
- "errorMessage": "request.challengeList[0].authFactorType: invalid_auth_factor_type"
+ "errorCode": "invalid_challenge_length"
}
],
"sendOtpResp": {
@@ -536,6 +535,7 @@ WalletBinding:
ESignet_WalletBinding_uin_Missing_AuthFactorType_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_auth_factor_type
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -565,8 +565,7 @@ WalletBinding:
output: '{
"errors": [
{
- "errorCode": "invalid_auth_factor_type",
- "errorMessage": "request.challengeList[0].authFactorType: invalid_auth_factor_type"
+ "errorCode": "invalid_auth_factor_type"
}
],
"sendOtpResp": {
@@ -579,6 +578,7 @@ WalletBinding:
ESignet_WalletBinding_uin_EmptyVal_AuthFactorType_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_auth_factor_type
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -608,8 +608,7 @@ WalletBinding:
output: '{
"errors": [
{
- "errorCode": "invalid_auth_factor_type",
- "errorMessage": "request.challengeList[0].authFactorType: invalid_auth_factor_type"
+ "errorCode": "invalid_auth_factor_type"
}
],
"sendOtpResp": {
@@ -622,6 +621,7 @@ WalletBinding:
ESignet_WalletBinding_uin_SpaceVal_AuthFactorType_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_auth_factor_type
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -694,8 +694,7 @@ WalletBinding:
output: '{
"errors": [
{
- "errorCode": "binding_auth_failed",
- "errorMessage": "request.challengeList[0].challenge: invalid_challenge"
+ "errorCode": "invalid_challenge_length"
}
],
"sendOtpResp": {
@@ -708,6 +707,7 @@ WalletBinding:
ESignet_WalletBinding_uin_EmptyVal_Challenge_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_challenge
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -751,6 +751,7 @@ WalletBinding:
ESignet_WalletBinding_uin_Missing_Challenge_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_challenge
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -794,6 +795,7 @@ WalletBinding:
ESignet_WalletBinding_uin_SpaceVal_Challenge_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_challenge
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -866,8 +868,7 @@ WalletBinding:
output: '{
"errors": [
{
- "errorCode": "invalid_auth_factor_type_or_challenge_format",
- "errorMessage": "request.format: unsupported_challenge_format"
+ "errorCode": "invalid_auth_factor_type_format"
}
],
"sendOtpResp": {
@@ -880,6 +881,7 @@ WalletBinding:
ESignet_WalletBinding_uin_Missing_Formate_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_challenge_format
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -909,8 +911,7 @@ WalletBinding:
output: '{
"errors": [
{
- "errorCode": "invalid_challenge_format",
- "errorMessage": "request.format: unsupported_challenge_format"
+ "errorCode": "invalid_challenge_format"
}
],
"sendOtpResp": {
@@ -923,6 +924,7 @@ WalletBinding:
ESignet_WalletBinding_uin_SpaceVal_Formate_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_challenge_format
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -966,6 +968,7 @@ WalletBinding:
ESignet_WalletBinding_uin_Empty_Formate_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_challenge_format
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -995,8 +998,7 @@ WalletBinding:
output: '{
"errors": [
{
- "errorCode": "invalid_challenge_format",
- "errorMessage": "unsupported_challenge_format"
+ "errorCode": "invalid_challenge_format"
}
],
"sendOtpResp": {
@@ -1807,8 +1809,7 @@ WalletBinding:
output: '{
"errors": [
{
- "errorCode": "invalid_auth_factor_type_or_challenge_format",
- "errorMessage": "request.challengeList[0].authFactorType: invalid_auth_factor_type"
+ "errorCode": "invalid_challenge_length"
}
],
"sendOtpResp": {
@@ -1821,6 +1822,7 @@ WalletBinding:
ESignet_WalletBinding_Vid_Missing_AuthFactorType_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_auth_factor_type
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -1850,8 +1852,7 @@ WalletBinding:
output: '{
"errors": [
{
- "errorCode": "invalid_auth_factor_type",
- "errorMessage": "request.challengeList[0].authFactorType: invalid_auth_factor_type"
+ "errorCode": "invalid_auth_factor_type"
}
],
"sendOtpResp": {
@@ -1864,6 +1865,7 @@ WalletBinding:
ESignet_WalletBinding_Vid_EmptyVal_AuthFactorType_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_auth_factor_type
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -1908,6 +1910,7 @@ WalletBinding:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
checkErrorsOnlyInResponse: true
+ allowedErrorCodes: invalid_auth_factor_type,invalid_auth_factor_type_format,invalid_challenge_length
validityCheckRequired: true
restMethod: post
inputTemplate: esignet/WalletBinding/WalletBinding
@@ -1979,8 +1982,7 @@ WalletBinding:
output: '{
"errors": [
{
- "errorCode": "binding_auth_failed",
- "errorMessage": "request.challengeList[0].challenge: invalid_challenge"
+ "errorCode": "invalid_challenge_length"
}
],
"sendOtpResp": {
@@ -1993,6 +1995,7 @@ WalletBinding:
ESignet_WalletBinding_Vid_EmptyVal_Challenge_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_challenge
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -2036,6 +2039,7 @@ WalletBinding:
ESignet_WalletBinding_Vid_Missing_Challenge_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_challenge
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -2079,6 +2083,7 @@ WalletBinding:
ESignet_WalletBinding_Vid_SpaceVal_Challenge_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_challenge
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -2151,8 +2156,7 @@ WalletBinding:
output: '{
"errors": [
{
- "errorCode": "invalid_auth_factor_type_or_challenge_format",
- "errorMessage": "request.format: unsupported_challenge_format"
+ "errorCode": "invalid_auth_factor_type_format"
}
],
"sendOtpResp": {
@@ -2165,6 +2169,7 @@ WalletBinding:
ESignet_WalletBinding_Vid_Missing_Formate_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_challenge_format
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -2208,6 +2213,7 @@ WalletBinding:
ESignet_WalletBinding_Vid_SpaceVal_Formate_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_challenge_format
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -2251,6 +2257,7 @@ WalletBinding:
ESignet_WalletBinding_Vid_Empty_Formate_Neg:
endPoint: /v1/esignet/binding/wallet-binding
role: mobileauth
+ allowedErrorCodes: invalid_challenge_format
checkErrorsOnlyInResponse: true
validityCheckRequired: true
restMethod: post
@@ -2280,8 +2287,7 @@ WalletBinding:
output: '{
"errors": [
{
- "errorCode": "invalid_challenge_format",
- "errorMessage": "unsupported_challenge_format"
+ "errorCode": "invalid_challenge_format"
}
],
"sendOtpResp": {
diff --git a/apitest/testNgXmlFiles/esignetSuite.xml b/apitest/testNgXmlFiles/esignetSuite.xml
index 6f264a27e..eccd90d9b 100644
--- a/apitest/testNgXmlFiles/esignetSuite.xml
+++ b/apitest/testNgXmlFiles/esignetSuite.xml
@@ -5,11 +5,7 @@
-
-
-
-
+
+
- org.modelmapper
- modelmapper
- 3.1.1
+ org.mapstruct
+ mapstruct
+ 1.5.5.Final
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ ${maven.compiler.version}
+
+ true
+
+ ${maven.compiler.target}
+
+
+ org.mapstruct
+ mapstruct-processor
+ 1.5.5.Final
+
+
+
+
+
+
\ No newline at end of file
diff --git a/consent-service-impl/src/main/java/io/mosip/esignet/config/ModelMapperConfig.java b/consent-service-impl/src/main/java/io/mosip/esignet/config/ModelMapperConfig.java
deleted file mode 100644
index 32c99cd43..000000000
--- a/consent-service-impl/src/main/java/io/mosip/esignet/config/ModelMapperConfig.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/.
- */
-package io.mosip.esignet.config;
-
-
-import org.modelmapper.ModelMapper;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-
-@Configuration
-public class ModelMapperConfig {
-
- @Bean
- public ModelMapper modelMapper() {
- return new ModelMapper();
- }
-
-}
diff --git a/consent-service-impl/src/main/java/io/mosip/esignet/entity/ConsentDetail.java b/consent-service-impl/src/main/java/io/mosip/esignet/entity/ConsentDetail.java
index 4f0073f51..ff296dce9 100644
--- a/consent-service-impl/src/main/java/io/mosip/esignet/entity/ConsentDetail.java
+++ b/consent-service-impl/src/main/java/io/mosip/esignet/entity/ConsentDetail.java
@@ -17,7 +17,6 @@
import static io.mosip.esignet.core.constants.ErrorConstants.INVALID_CLAIM;
import static io.mosip.esignet.core.constants.ErrorConstants.INVALID_CLIENT_ID;
-@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@@ -79,4 +78,92 @@ public boolean equals(Object o) {
public int hashCode() {
return getClass().hashCode();
}
+
+ public UUID getId() {
+ return id;
+ }
+
+ public void setId(UUID id) {
+ this.id = id;
+ }
+
+ public @NotNull(message = INVALID_CLIENT_ID) String getClientId() {
+ return clientId;
+ }
+
+ public void setClientId(@NotNull(message = INVALID_CLIENT_ID) String clientId) {
+ this.clientId = clientId;
+ }
+
+ public @NotNull String getPsuToken() {
+ return psuToken;
+ }
+
+ public void setPsuToken(@NotNull String psuToken) {
+ this.psuToken = psuToken;
+ }
+
+ public @NotNull(message = INVALID_CLAIM) String getClaims() {
+ return claims;
+ }
+
+ public void setClaims(@NotNull(message = INVALID_CLAIM) String claims) {
+ this.claims = claims;
+ }
+
+ public @NotNull String getAuthorizationScopes() {
+ return authorizationScopes;
+ }
+
+ public void setAuthorizationScopes(@NotNull String authorizationScopes) {
+ this.authorizationScopes = authorizationScopes;
+ }
+
+ public @NotNull LocalDateTime getCreatedtimes() {
+ return createdtimes;
+ }
+
+ public void setCreatedtimes(@NotNull LocalDateTime createdtimes) {
+ this.createdtimes = createdtimes;
+ }
+
+ public LocalDateTime getExpiredtimes() {
+ return expiredtimes;
+ }
+
+ public void setExpiredtimes(LocalDateTime expiredtimes) {
+ this.expiredtimes = expiredtimes;
+ }
+
+ public String getSignature() {
+ return signature;
+ }
+
+ public void setSignature(String signature) {
+ this.signature = signature;
+ }
+
+ public String getHash() {
+ return hash;
+ }
+
+ public void setHash(String hash) {
+ this.hash = hash;
+ }
+
+ public String getAcceptedClaims() {
+ return acceptedClaims;
+ }
+
+ public void setAcceptedClaims(String acceptedClaims) {
+ this.acceptedClaims = acceptedClaims;
+ }
+
+ public String getPermittedScopes() {
+ return permittedScopes;
+ }
+
+ public void setPermittedScopes(String permittedScopes) {
+ this.permittedScopes = permittedScopes;
+ }
}
diff --git a/consent-service-impl/src/main/java/io/mosip/esignet/entity/ConsentHistory.java b/consent-service-impl/src/main/java/io/mosip/esignet/entity/ConsentHistory.java
index 52823d34d..592013f14 100644
--- a/consent-service-impl/src/main/java/io/mosip/esignet/entity/ConsentHistory.java
+++ b/consent-service-impl/src/main/java/io/mosip/esignet/entity/ConsentHistory.java
@@ -19,7 +19,6 @@
import static io.mosip.esignet.core.constants.ErrorConstants.INVALID_CLAIM;
import static io.mosip.esignet.core.constants.ErrorConstants.INVALID_CLIENT_ID;
-@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@@ -75,4 +74,92 @@ public boolean equals(Object o) {
public int hashCode() {
return getClass().hashCode();
}
+
+ public UUID getId() {
+ return id;
+ }
+
+ public void setId(UUID id) {
+ this.id = id;
+ }
+
+ public @NotNull(message = INVALID_CLIENT_ID) String getClientId() {
+ return clientId;
+ }
+
+ public void setClientId(@NotNull(message = INVALID_CLIENT_ID) String clientId) {
+ this.clientId = clientId;
+ }
+
+ public @NotNull String getPsuToken() {
+ return psuToken;
+ }
+
+ public void setPsuToken(@NotNull String psuToken) {
+ this.psuToken = psuToken;
+ }
+
+ public @NotNull(message = INVALID_CLAIM) String getClaims() {
+ return claims;
+ }
+
+ public void setClaims(@NotNull(message = INVALID_CLAIM) String claims) {
+ this.claims = claims;
+ }
+
+ public @NotNull String getAuthorizationScopes() {
+ return authorizationScopes;
+ }
+
+ public void setAuthorizationScopes(@NotNull String authorizationScopes) {
+ this.authorizationScopes = authorizationScopes;
+ }
+
+ public @NotNull LocalDateTime getCreatedtimes() {
+ return createdtimes;
+ }
+
+ public void setCreatedtimes(@NotNull LocalDateTime createdtimes) {
+ this.createdtimes = createdtimes;
+ }
+
+ public LocalDateTime getExpiredtimes() {
+ return expiredtimes;
+ }
+
+ public void setExpiredtimes(LocalDateTime expiredtimes) {
+ this.expiredtimes = expiredtimes;
+ }
+
+ public String getSignature() {
+ return signature;
+ }
+
+ public void setSignature(String signature) {
+ this.signature = signature;
+ }
+
+ public String getHash() {
+ return hash;
+ }
+
+ public void setHash(String hash) {
+ this.hash = hash;
+ }
+
+ public String getAcceptedClaims() {
+ return acceptedClaims;
+ }
+
+ public void setAcceptedClaims(String acceptedClaims) {
+ this.acceptedClaims = acceptedClaims;
+ }
+
+ public String getPermittedScopes() {
+ return permittedScopes;
+ }
+
+ public void setPermittedScopes(String permittedScopes) {
+ this.permittedScopes = permittedScopes;
+ }
}
diff --git a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/ConsentMapper.java b/consent-service-impl/src/main/java/io/mosip/esignet/mapper/ConsentMapper.java
index 5c7ed9448..f781eb379 100644
--- a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/ConsentMapper.java
+++ b/consent-service-impl/src/main/java/io/mosip/esignet/mapper/ConsentMapper.java
@@ -1,50 +1,74 @@
-/*
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/.
- */
package io.mosip.esignet.mapper;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
+import io.mosip.esignet.api.dto.Claims;
import io.mosip.esignet.core.dto.ConsentDetail;
import io.mosip.esignet.core.dto.UserConsent;
+import io.mosip.esignet.core.exception.EsignetException;
import io.mosip.esignet.entity.ConsentHistory;
-import io.mosip.esignet.mapper.converter.*;
-import org.modelmapper.ModelMapper;
+import org.apache.commons.lang3.StringUtils;
+import org.mapstruct.Mapper;
+import org.springframework.beans.factory.annotation.Autowired;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+import static io.mosip.esignet.core.constants.ErrorConstants.INVALID_CLAIM;
+import static io.mosip.esignet.core.constants.ErrorConstants.INVALID_PERMITTED_SCOPE;
+@Mapper(componentModel = "spring")
+public abstract class ConsentMapper {
+ @Autowired
+ protected ObjectMapper objectMapper;
-public class ConsentMapper {
+ public abstract io.mosip.esignet.entity.ConsentDetail toEntity(UserConsent userConsent);
- private ConsentMapper(){}
+ public abstract ConsentDetail toDto(io.mosip.esignet.entity.ConsentDetail consentDetail);
- private static final ModelMapper modelMapper = new ModelMapper();
+ public abstract ConsentHistory toConsentHistoryEntity(UserConsent userConsent);
+
+ public String convertClaimsToString(Claims claims) {
+ try {
+ return claims != null ? objectMapper.writeValueAsString(claims) : "";
+ } catch (JsonProcessingException e) {
+ throw new EsignetException(INVALID_CLAIM);
+ }
+ }
- static {
- ObjectMapper objectMapper = new ObjectMapper();
- modelMapper.addConverter(new ClaimsToStringConverter(objectMapper));
- modelMapper.addConverter(new StringToClaimsConverter(objectMapper));
- modelMapper.addConverter(new MapToStringConverter(objectMapper));
- modelMapper.addConverter(new StringToMapConverter(objectMapper));
- modelMapper.addConverter(new ListToStringConverter());
- modelMapper.addConverter(new StringToListConverter());
- modelMapper.addMappings(new CustomConsentRequestMapping());
- modelMapper.addMappings(new CustomConsentHistoryMapping());
+ public Claims convertStringToClaims(String claims) {
+ try {
+ return StringUtils.isNotBlank(claims) ? objectMapper.readValue(claims, Claims.class) : null;
+ } catch (JsonProcessingException e) {
+ throw new EsignetException(INVALID_CLAIM);
+ }
}
- public static io.mosip.esignet.entity.ConsentDetail toEntity(ConsentDetail consentDetailDTo) {
- return modelMapper.map(consentDetailDTo, io.mosip.esignet.entity.ConsentDetail.class);
+ public String convertListToString(List list) {
+ return list == null ? "" : String.join(",", list);
}
- public static io.mosip.esignet.entity.ConsentDetail toEntity(UserConsent userConsent) {
- return modelMapper.map(userConsent, io.mosip.esignet.entity.ConsentDetail.class);
+ public List convertStringToList(String value) {
+ return StringUtils.isEmpty(value) ? List.of(): Arrays.asList(value.split(","));
}
- public static ConsentDetail toDto(io.mosip.esignet.entity.ConsentDetail consentDetail) {
- return modelMapper.map(consentDetail, ConsentDetail.class);
+ public String convertMapToString(Map map) {
+ try{
+ return map!=null?objectMapper.writeValueAsString(map):"";
+ }catch (JsonProcessingException e) {
+ throw new EsignetException(INVALID_PERMITTED_SCOPE);
+ }
}
- public static ConsentHistory toConsentHistoryEntity(UserConsent userConsent){
- return modelMapper.map(userConsent, ConsentHistory.class);
+ public Map convertStringToMap(String value) {
+ try{
+ return StringUtils.isNotBlank(value) ? objectMapper.readValue(value,Map.class): Collections.emptyMap();
+ } catch (JsonProcessingException e) {
+ throw new EsignetException(INVALID_PERMITTED_SCOPE);
+ }
}
}
diff --git a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/CustomConsentHistoryMapping.java b/consent-service-impl/src/main/java/io/mosip/esignet/mapper/CustomConsentHistoryMapping.java
deleted file mode 100644
index 6e1b5d1ad..000000000
--- a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/CustomConsentHistoryMapping.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/.
- */
-package io.mosip.esignet.mapper;
-
-import io.mosip.esignet.core.dto.UserConsent;
-import io.mosip.esignet.entity.ConsentHistory;
-import org.modelmapper.PropertyMap;
-
-public class CustomConsentHistoryMapping extends PropertyMap {
- @Override
- protected void configure() {
- // Skip the 'id' field when mapping
- skip().setId(null);
- }
-}
-
-
diff --git a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/CustomConsentRequestMapping.java b/consent-service-impl/src/main/java/io/mosip/esignet/mapper/CustomConsentRequestMapping.java
deleted file mode 100644
index 3de2f4f34..000000000
--- a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/CustomConsentRequestMapping.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/.
- */
-package io.mosip.esignet.mapper;
-
-import io.mosip.esignet.core.dto.UserConsent;
-import io.mosip.esignet.entity.ConsentDetail;
-import org.modelmapper.PropertyMap;
-
-public class CustomConsentRequestMapping extends PropertyMap {
- @Override
- protected void configure() {
- // Skip the 'id' field when mapping
- skip().setId(null);
- }
-}
-
-
diff --git a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/ClaimsToStringConverter.java b/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/ClaimsToStringConverter.java
deleted file mode 100644
index 961768890..000000000
--- a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/ClaimsToStringConverter.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/.
- */
-package io.mosip.esignet.mapper.converter;
-
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import io.mosip.esignet.api.dto.Claims;
-import io.mosip.esignet.core.exception.EsignetException;
-import lombok.extern.slf4j.Slf4j;
-import org.modelmapper.Converter;
-import org.modelmapper.spi.MappingContext;
-
-import static io.mosip.esignet.core.constants.ErrorConstants.INVALID_CLAIM;
-
-@Slf4j
-public class ClaimsToStringConverter implements Converter {
- private final ObjectMapper objectMapper;
-
- public ClaimsToStringConverter(ObjectMapper objectMapper) {
- this.objectMapper = objectMapper;
- }
-
- @Override
- public String convert(MappingContext context) {
- Claims claims = context.getSource();
- try {
- return claims != null ? objectMapper.writeValueAsString(claims) : "";
- } catch (JsonProcessingException e) {
- throw new EsignetException(INVALID_CLAIM);
- }
- }
-}
\ No newline at end of file
diff --git a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/ListToStringConverter.java b/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/ListToStringConverter.java
deleted file mode 100644
index ec9664ed5..000000000
--- a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/ListToStringConverter.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/.
- */
-package io.mosip.esignet.mapper.converter;
-
-import org.modelmapper.Converter;
-import org.modelmapper.spi.MappingContext;
-
-import java.util.List;
-
-public class ListToStringConverter implements Converter, String> {
- @Override
- public String convert(MappingContext, String> context) {
- List source = context.getSource();
- return source == null ? "" : String.join(",", context.getSource());
- }
-}
\ No newline at end of file
diff --git a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/MapToStringConverter.java b/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/MapToStringConverter.java
deleted file mode 100644
index 5e832d45d..000000000
--- a/consent-service-impl/src/main/java/io/mosip/esignet/mapper/converter/MapToStringConverter.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/.
- */
-package io.mosip.esignet.mapper.converter;
-
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import io.mosip.esignet.core.exception.EsignetException;
-import org.modelmapper.Converter;
-import org.modelmapper.spi.MappingContext;
-
-import java.util.Map;
-
-import static io.mosip.esignet.core.constants.ErrorConstants.INVALID_PERMITTED_SCOPE;
-
-public class MapToStringConverter implements Converter