Skip to content

Commit

Permalink
Update InternalRestController.java
Browse files Browse the repository at this point in the history
Signed-off-by: Manishch22 <[email protected]>
  • Loading branch information
Manishch22 authored Feb 13, 2024
1 parent fc56ce0 commit 5fea8d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5fea8d1

Please sign in to comment.