Skip to content

Commit

Permalink
fix: miw tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed Nov 8, 2023
1 parent bbcba59 commit 93d97c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void verifyVp_spoofedVpAndForgedJws() throws JsonProcessingException, ParseExcep
var jo = Json.createObjectBuilder(payloadJson).build();

// replace JWS inside the VC's proof object
var jws = jo.getJsonObject("vp").getJsonObject("verifiableCredential").getJsonObject("proof").getString("jws");
var jws = jo.getJsonObject("vp").getJsonArray("verifiableCredential").getJsonObject(0).getJsonObject("proof").getString("jws");
var invalidJws = jws.replace("a", "X");
var tamperedJson = jo.toString().replace(jws, invalidJws);
var tamperedJsonObject = OBJECT_MAPPER.readValue(tamperedJson, mapRef);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ version: '3'

services:
miw:
image: ghcr.io/catenax-ng/tx-managed-identity-wallets_miw_service:latest-java-did-web
image: tractusx/managed-identity-wallet:main
platform: linux/amd64
container_name: miw
env_file:
Expand Down

0 comments on commit 93d97c6

Please sign in to comment.