From a90368cd24aceea3afbd8d611f3c0f9f333d1821 Mon Sep 17 00:00:00 2001 From: Sohan Kumar Dey <72375959+Sohandey@users.noreply.github.com> Date: Sun, 3 Nov 2024 20:54:26 +0530 Subject: [PATCH] auth fixes Signed-off-by: Sohan Kumar Dey <72375959+Sohandey@users.noreply.github.com> --- .../testrig/apirig/testscripts/DemoAuth.java | 2 +- .../ida/BioAuthHotListLock/BioAuth.yml | 8 ++++---- .../ida/BioAuthHotListPartner/BioAuth.yml | 8 ++++---- .../ida/BioAuthHotListPartner/error.hbs | 6 +----- .../ida/BioAuthHotListPartner/errorKyc.hbs | 18 ++++++++++++------ 5 files changed, 22 insertions(+), 20 deletions(-) diff --git a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DemoAuth.java b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DemoAuth.java index 3d5707f7c50..cc11337c296 100644 --- a/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DemoAuth.java +++ b/api-test/src/main/java/io/mosip/testrig/apirig/testscripts/DemoAuth.java @@ -133,7 +133,7 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad identityRequest = JsonPrecondtion.parseAndReturnJsonContent(identityRequest, generateCurrentUTCTimeStamp(), "timestamp"); Map demoAuthTempMap = encryptDecryptUtil.getEncryptSessionKeyValue(identityRequest); String authRequest = getJsonFromTemplate(request.toString(), testCaseDTO.getInputTemplate()); - logger.info("************* Modification of bio auth request ******************"); + logger.info("************* Modification of demo auth request ******************"); Reporter.log("Modification of demo auth request"); JSONObject authRequestTemp = new JSONObject(authRequest); diff --git a/api-test/src/main/resources/ida/BioAuthHotListLock/BioAuth.yml b/api-test/src/main/resources/ida/BioAuthHotListLock/BioAuth.yml index 5834249c152..b55f0106a62 100644 --- a/api-test/src/main/resources/ida/BioAuthHotListLock/BioAuth.yml +++ b/api-test/src/main/resources/ida/BioAuthHotListLock/BioAuth.yml @@ -273,7 +273,7 @@ BioAuth: "authStatus": "false" }' auth_EkycBio_Face_With_blocked_deviceProviderId: - endPoint: /idauthentication/v1/auth/$ekycPartnerKeyURL$ + endPoint: /idauthentication/v1/kyc/$ekycPartnerKeyURL$ description: Ekyc bio auth with face with blocked deviceProviderId role: resident restMethod: post @@ -312,7 +312,7 @@ BioAuth: "kycStatus": "false" }' auth_EkycBio_RingFinger_With_blocked_deviceProviderId: - endPoint: /idauthentication/v1/auth/$ekycPartnerKeyURL$ + endPoint: /idauthentication/v1/kyc/$ekycPartnerKeyURL$ description: Ekyc bio auth with RingFinger with blocked deviceProviderId role: resident restMethod: post @@ -351,7 +351,7 @@ BioAuth: "kycStatus": "false" }' auth_EkycBio_LeftMiddleFingerr_With_blocked_deviceProviderId: - endPoint: /idauthentication/v1/auth/$ekycPartnerKeyURL$ + endPoint: /idauthentication/v1/kyc/$ekycPartnerKeyURL$ description: Ekyc bio auth with LeftMiddleFinger with blocked deviceProviderId role: resident restMethod: post @@ -391,7 +391,7 @@ BioAuth: "kycStatus": "false" }' auth_EkycBio_RIGHTIRIS_With_blocked_deviceProviderId: - endPoint: /idauthentication/v1/auth/$ekycPartnerKeyURL$ + endPoint: /idauthentication/v1/kyc/$ekycPartnerKeyURL$ description: Ekyc bio auth with RIGHTIRIS with blocked deviceProviderId role: resident restMethod: post diff --git a/api-test/src/main/resources/ida/BioAuthHotListPartner/BioAuth.yml b/api-test/src/main/resources/ida/BioAuthHotListPartner/BioAuth.yml index 9b85d6e4136..f04535e3f9b 100644 --- a/api-test/src/main/resources/ida/BioAuthHotListPartner/BioAuth.yml +++ b/api-test/src/main/resources/ida/BioAuthHotListPartner/BioAuth.yml @@ -195,7 +195,7 @@ BioAuth: "authStatus": "false" }' auth_EkycBio_Face_With_blocked_partner: - endPoint: /idauthentication/v1/auth/$ekycPartnerKeyURL$ + endPoint: /idauthentication/v1/kyc/$ekycPartnerKeyURL$ description: Ekyc face auth with blocked partner role: resident restMethod: post @@ -234,7 +234,7 @@ BioAuth: "kycStatus": "false" }' auth_EkycBio_RingFinger_With_blocked_deviceProviderId: - endPoint: /idauthentication/v1/auth/$ekycPartnerKeyURL$ + endPoint: /idauthentication/v1/kyc/$ekycPartnerKeyURL$ description: Ekyc RingFinger auth with blocked deviceProviderId role: resident restMethod: post @@ -273,7 +273,7 @@ BioAuth: "kycStatus": "false" }' auth_EkycBio_LeftMiddleFingerr_With_blocked_deviceProviderId: - endPoint: /idauthentication/v1/auth/$ekycPartnerKeyURL$ + endPoint: /idauthentication/v1/kyc/$ekycPartnerKeyURL$ description: Ekyc LeftMiddleFinger auth with blocked deviceProviderId role: resident restMethod: post @@ -312,7 +312,7 @@ BioAuth: "kycStatus": "false" }' auth_EkycBio_RIGHTIRIS_With_blocked_deviceProviderId: - endPoint: /idauthentication/v1/auth/$ekycPartnerKeyURL$ + endPoint: /idauthentication/v1/kyc/$ekycPartnerKeyURL$ description: Ekyc RIGHTIRIS auth with blocked deviceProviderId role: resident restMethod: post diff --git a/api-test/src/main/resources/ida/BioAuthHotListPartner/error.hbs b/api-test/src/main/resources/ida/BioAuthHotListPartner/error.hbs index 3ae04f7cbac..ea4e6bc62fb 100644 --- a/api-test/src/main/resources/ida/BioAuthHotListPartner/error.hbs +++ b/api-test/src/main/resources/ida/BioAuthHotListPartner/error.hbs @@ -1,6 +1,4 @@ { - "authResponse": { - "body": { "errors": [ {{#each errors}} { @@ -9,9 +7,7 @@ {{#unless @last}},{{/unless}} {{/each}} ], - "response": { + "response": { "authStatus": {{authStatus}} - } } - } } \ No newline at end of file diff --git a/api-test/src/main/resources/ida/BioAuthHotListPartner/errorKyc.hbs b/api-test/src/main/resources/ida/BioAuthHotListPartner/errorKyc.hbs index 9d51fe4b7fb..557d4fc2834 100644 --- a/api-test/src/main/resources/ida/BioAuthHotListPartner/errorKyc.hbs +++ b/api-test/src/main/resources/ida/BioAuthHotListPartner/errorKyc.hbs @@ -1,9 +1,15 @@ { - "authResponse": { - "body": { - "response": { - "kycStatus": {{kycStatus}} - } + "transactionID": "$IGNORE$", + "version": "$IGNORE$", + "id": "$IGNORE$", + "errors": [ + {{#each errors}} + { + "errorCode": "{{errorCode}}", + "errorMessage": "$IGNORE$" } - } + {{#unless @last}},{{/unless}} + {{/each}} + ], + "responseTime": "$IGNORE$" } \ No newline at end of file