Skip to content

Commit

Permalink
MOSIP-30687 on demand template extraction (#1180)
Browse files Browse the repository at this point in the history
* MOSIP-30687 partner data changed

Signed-off-by: Neha Farheen <[email protected]>

* MOSIP-30687 partner data changed

Signed-off-by: Neha Farheen <[email protected]>

* MOSIP-30687 changes done for ondemand

Signed-off-by: Neha Farheen <[email protected]>

---------

Signed-off-by: Neha Farheen <[email protected]>
Co-authored-by: Neha Farheen <[email protected]>
  • Loading branch information
Neha2365 and Neha Farheen authored Feb 7, 2024
1 parent b5c8e30 commit b301e61
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 b301e61

Please sign in to comment.