Skip to content

Commit

Permalink
auth fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Sohan Kumar Dey <[email protected]>
  • Loading branch information
Sohandey committed Nov 3, 2024
1 parent a8cbf75 commit a90368c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void test(TestCaseDTO testCaseDTO) throws AuthenticationTestException, Ad
identityRequest = JsonPrecondtion.parseAndReturnJsonContent(identityRequest, generateCurrentUTCTimeStamp(), "timestamp");
Map<String, String> 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("<b><u>Modification of demo auth request</u></b>");

JSONObject authRequestTemp = new JSONObject(authRequest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"authResponse": {
"body": {
"errors": [
{{#each errors}}
{
Expand All @@ -9,9 +7,7 @@
{{#unless @last}},{{/unless}}
{{/each}}
],
"response": {
"response": {
"authStatus": {{authStatus}}
}
}
}
}
18 changes: 12 additions & 6 deletions api-test/src/main/resources/ida/BioAuthHotListPartner/errorKyc.hbs
Original file line number Diff line number Diff line change
@@ -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$"
}

0 comments on commit a90368c

Please sign in to comment.