From f5248b7bb4682d4cd56a79141857c4275555fbf0 Mon Sep 17 00:00:00 2001 From: Shashank Kulkarni <44693969+KulkarniShashank@users.noreply.github.com> Date: Tue, 26 Sep 2023 19:46:07 +0530 Subject: [PATCH] feat: support afj-0.4.1 (#102) Signed-off-by: KulkarniShashank --- .env.sample | 2 +- apps/agent-provisioning/AFJ/scripts/start_agent.sh | 2 +- apps/agent-provisioning/AFJ/scripts/start_agent_ecs.sh | 2 +- apps/api-gateway/src/connection/connection.controller.ts | 1 + apps/api-gateway/src/issuance/issuance.controller.ts | 1 + apps/api-gateway/src/verification/verification.controller.ts | 2 +- 6 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.env.sample b/.env.sample index 1739e22e2..9e9e35b11 100644 --- a/.env.sample +++ b/.env.sample @@ -37,7 +37,7 @@ WALLET_STORAGE_PASSWORD=xxxxxx CRYPTO_PRIVATE_KEY=xxxxx-xxxxx-xxxxx-xxxxx #It should be same as studio UI -AFJ_VERSION=afj-0.4.0:latest +AFJ_VERSION=afj-0.4.1:latest FIDO_API_ENDPOINT=http://localhost:8000 # Host:port of your FIDO (WebAuthn) Server diff --git a/apps/agent-provisioning/AFJ/scripts/start_agent.sh b/apps/agent-provisioning/AFJ/scripts/start_agent.sh index 881ed70d6..899229c80 100755 --- a/apps/agent-provisioning/AFJ/scripts/start_agent.sh +++ b/apps/agent-provisioning/AFJ/scripts/start_agent.sh @@ -48,7 +48,7 @@ cat <>${PWD}/apps/agent-provisioning/AFJ/agent-config/${AGENCY}_${CONTAINE "label": "${AGENCY}_${CONTAINER_NAME}", "walletId": "$WALLET_NAME", "walletKey": "$WALLET_PASSWORD", - "walletType": "postgres_storage", + "walletType": "postgres", "walletUrl": "$WALLET_STORAGE_HOST:$WALLET_STORAGE_PORT", "walletAccount": "$WALLET_STORAGE_USER", "walletPassword": "$WALLET_STORAGE_PASSWORD", diff --git a/apps/agent-provisioning/AFJ/scripts/start_agent_ecs.sh b/apps/agent-provisioning/AFJ/scripts/start_agent_ecs.sh index f757e53bb..db3de117f 100644 --- a/apps/agent-provisioning/AFJ/scripts/start_agent_ecs.sh +++ b/apps/agent-provisioning/AFJ/scripts/start_agent_ecs.sh @@ -38,7 +38,7 @@ cat <>/app/agent-provisioning/AFJ/agent-config/${AGENCY}_${CONTAINER_NAME} "label": "${AGENCY}_${CONTAINER_NAME}", "walletId": "$WALLET_NAME", "walletKey": "$WALLET_PASSWORD", - "walletType": "postgres_storage", + "walletType": "postgres", "walletUrl": "$WALLET_STORAGE_HOST:$WALLET_STORAGE_PORT", "walletAccount": "$WALLET_STORAGE_USER", "walletPassword": "$WALLET_STORAGE_PASSWORD", diff --git a/apps/api-gateway/src/connection/connection.controller.ts b/apps/api-gateway/src/connection/connection.controller.ts index d05e52845..d87f58721 100644 --- a/apps/api-gateway/src/connection/connection.controller.ts +++ b/apps/api-gateway/src/connection/connection.controller.ts @@ -168,6 +168,7 @@ export class ConnectionController { @Param('id') id: number, @Res() res: Response ): Promise { + this.logger.debug(`connectionDto ::: ${JSON.stringify(connectionDto)}`); const connectionData = await this.connectionService.getConnectionWebhook(connectionDto, id); const finalResponse: IResponseType = { statusCode: HttpStatus.CREATED, diff --git a/apps/api-gateway/src/issuance/issuance.controller.ts b/apps/api-gateway/src/issuance/issuance.controller.ts index 3bbf6b559..ba130ad24 100644 --- a/apps/api-gateway/src/issuance/issuance.controller.ts +++ b/apps/api-gateway/src/issuance/issuance.controller.ts @@ -199,6 +199,7 @@ export class IssuanceController { @Param('id') id: number, @Res() res: Response ): Promise { + this.logger.debug(`issueCredentialDto ::: ${issueCredentialDto}`); const getCredentialDetails = await this.issueCredentialService.getIssueCredentialWebhook(issueCredentialDto, id); const finalResponse: IResponseType = { statusCode: HttpStatus.CREATED, diff --git a/apps/api-gateway/src/verification/verification.controller.ts b/apps/api-gateway/src/verification/verification.controller.ts index 672e8bbba..f9f555c52 100644 --- a/apps/api-gateway/src/verification/verification.controller.ts +++ b/apps/api-gateway/src/verification/verification.controller.ts @@ -252,7 +252,7 @@ export class VerificationController { @Body() proofPresentationPayload: WebhookPresentationProof, @Res() res: Response ): Promise { - + this.logger.debug(`proofPresentationPayload ::: ${JSON.stringify(proofPresentationPayload)}`); const webhookProofPresentation = await this.verificationService.webhookProofPresentation(id, proofPresentationPayload); const finalResponse: IResponseType = { statusCode: HttpStatus.CREATED,