From 5fea8d13d122d1cf2c195d3d8227b7ec0d3880d6 Mon Sep 17 00:00:00 2001 From: Manishch22 <126442522+Manishch22@users.noreply.github.com> Date: Tue, 13 Feb 2024 17:38:59 +0530 Subject: [PATCH] Update InternalRestController.java Signed-off-by: Manishch22 <126442522+Manishch22@users.noreply.github.com> --- .../io/mosip/opencrvs/controller/InternalRestController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediator/src/main/java/io/mosip/opencrvs/controller/InternalRestController.java b/mediator/src/main/java/io/mosip/opencrvs/controller/InternalRestController.java index 49f861e..a820364 100644 --- a/mediator/src/main/java/io/mosip/opencrvs/controller/InternalRestController.java +++ b/mediator/src/main/java/io/mosip/opencrvs/controller/InternalRestController.java @@ -33,7 +33,7 @@ public SimpleMessageResponse unsubscribe() { //@PostMapping(value = "/receiveCredentialBirth", consumes = MediaType.APPLICATION_JSON_VALUE) //@PreAuthenticateContentAndVerifyIntent(secret = "abc@123",callback = "" ,topic = "") @PostMapping(path = "/receiveCredentialBirth", consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE) - @PreAuthenticateContentAndVerifyIntent(secret = "${mosip.opencrvs.partner.client.sha.secret}", callback = "/opencrvs/v1/internal/receiveCredentialBirth", topic = "${mosip.opencrvs.partner.client.id}/CREDENTIAL_ISSUED") + @PreAuthenticateContentAndVerifyIntent(secret = "${mosip.opencrvs.partner.client.sha.secret}", callback = "/opencrvs/v1/internal/receiveCredentialBirth", topic = "${mosip.opencrvs.credential.websub.topic}") public SimpleMessageResponse postReceiveUinOnBirth(@RequestBody WebsubRequest body) { LOGGER.info(LoggingConstants.SESSION, LoggingConstants.ID, "postReceiveUinOnBirth", "Here is the request received - " + body); receiveCredentialService.tokenizeReceivedCredential(body);