Skip to content

Commit

Permalink
Changes in error message and merge resolve conflict
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
2 parents 13a5850 + 9391e35 commit c4467f8
Show file tree
Hide file tree
Showing 4 changed files with 518 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,8 @@ public final class IdAuthCommonConstants {
public static final String POLICY_DATA = "policy_data";

public static final String MISP_LIC_DATA = "misp_lic_data";

public static final String UNABLE_TO_IDENTIFY_ID = "Unable to identify the entered %s. Please try after few minutes";

private IdAuthCommonConstants() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ public enum IdAuthenticationErrorConstants {
"Please capture biometrics within %s seconds of previous biometric capture"),
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,7 +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());
e.getErrorTexts().add(0, IdAuthCommonConstants.UNABLE_TO_IDENTIFY_ID);
}
auditHelper.auditExceptionForAuthRequestedModules(AuditEvents.AUTH_REQUEST_RESPONSE, authrequestdto, e);
IdaRequestResponsConsumerUtil.setIdVersionToObjectWithMetadata(requestWithMetadata, e);
Expand Down
Loading

0 comments on commit c4467f8

Please sign in to comment.