Skip to content

Commit

Permalink
Changes in error message
Browse files Browse the repository at this point in the history
Signed-off-by: Neha Farheen <[email protected]>
  • Loading branch information
Neha Farheen committed Feb 8, 2024
1 parent c123c3b commit 13a5850
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public enum IdAuthenticationErrorConstants {
IDENTITYTYPE_NOT_ALLOWED("IDA-MLC-015", "Identity Type - %s not configured for the country"),
INVALID_TXNID_BIO("IDA-MLC-016", "Transaction ID parameters in the request does not match"),
INVALID_USERID( "IDA-MLC-017","Invalid UserID"),
ID_NOT_AVAILABLE("IDA-MLC-018", "Unable to identify the entered %s. Please try after few minutes"),
ID_NOT_AVAILABLE("IDA-MLC-018", "%s not available in database"),
AUTH_TYPE_LOCKED("IDA-MLC-019", "%s Auth Type is Locked for the UIN"),
FAILED_TO_ENCRYPT("IDA-MLC-020", "Unable to encrypt data"),
FAILED_TO_FETCH_KEY("IDA-MLC-021", "Failed to fetch key from HSM"),
Expand All @@ -66,6 +66,8 @@ public enum IdAuthenticationErrorConstants {
INVALID_BIO_DIGITALID_TIMESTAMP("IDA-MLC-031", "DigitalId of Biometrics not captured within %s seconds of previous biometrics",
"Please capture DigitalId of biometrics within %s seconds of previous biometric capture"),

UNABLE_TO_IDENTIFY_ID("IDA-MLC-032", "Unable to identify the entered %s. Please try after few minutes"),

DEMOGRAPHIC_DATA_MISMATCH_LANG("IDA-DEA-001", "Demographic data %s in %s did not match",
"Please re-enter your %s in %s"),
DEMO_DATA_MISMATCH("IDA-DEA-001", "Demographic data %s did not match", "Please re-enter your %s"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public AuthResponseDTO authenticateIndividual(@Validated @RequestBody AuthReques
if (IdAuthenticationErrorConstants.ID_NOT_AVAILABLE.getErrorCode().equals(e.getErrorCode())) {
ondemandTemplateEventPublisher.notify(authrequestdto, request.getHeader("signature"), partner, e,
authrequestdto.getMetadata());
e.getErrorTexts().add(0, IdAuthenticationErrorConstants.UNABLE_TO_IDENTIFY_ID.getErrorMessage());
}
auditHelper.auditExceptionForAuthRequestedModules(AuditEvents.AUTH_REQUEST_RESPONSE, authrequestdto, e);
IdaRequestResponsConsumerUtil.setIdVersionToObjectWithMetadata(requestWithMetadata, e);
Expand Down

0 comments on commit 13a5850

Please sign in to comment.