Skip to content

Commit

Permalink
MOSIP-30687 changes done for ondemand
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 7, 2024
1 parent 6f4ebd1 commit 94f4f03
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,10 @@ 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());
throw new IdAuthenticationBusinessException(
IdAuthenticationErrorConstants.UNABLE_TO_IDENTIFY_ID.getErrorCode(),
String.format(
IdAuthenticationErrorConstants.UNABLE_TO_IDENTIFY_ID.getErrorMessage(),
authrequestdto.getIndividualIdType()),
e);
e.addInfo(IdAuthenticationErrorConstants.UNABLE_TO_IDENTIFY_ID.getErrorCode(),
String.format(IdAuthenticationErrorConstants.UNABLE_TO_IDENTIFY_ID.getErrorMessage(),
authrequestdto.getIndividualIdType()));
throw e;

}

Expand Down

0 comments on commit 94f4f03

Please sign in to comment.