diff --git a/cloud-agent/service/server/src/test/scala/org/hyperledger/identus/verification/controller/VcVerificationControllerImplSpec.scala b/cloud-agent/service/server/src/test/scala/org/hyperledger/identus/verification/controller/VcVerificationControllerImplSpec.scala index 06daefa8e3..91e4af1d8f 100644 --- a/cloud-agent/service/server/src/test/scala/org/hyperledger/identus/verification/controller/VcVerificationControllerImplSpec.scala +++ b/cloud-agent/service/server/src/test/scala/org/hyperledger/identus/verification/controller/VcVerificationControllerImplSpec.scala @@ -77,6 +77,7 @@ object VcVerificationControllerImplSpec extends ZIOSpecDefault with VcVerificati signedJwtCredential.value, List( ParameterizableVcVerification(VcVerification.SignatureVerification, None), + ParameterizableVcVerification(VcVerification.SemanticCheckOfClaims, None), ParameterizableVcVerification(VcVerification.NotBeforeCheck, Some(DateTimeParameter(currentTime))), ParameterizableVcVerification(VcVerification.ExpirationCheck, Some(DateTimeParameter(currentTime))) ) @@ -107,6 +108,7 @@ object VcVerificationControllerImplSpec extends ZIOSpecDefault with VcVerificati signedJwtCredential.value, List( VcVerificationResult(VcVerification.SignatureVerification, false), + VcVerificationResult(VcVerification.SemanticCheckOfClaims, true), VcVerificationResult(VcVerification.NotBeforeCheck, true), VcVerificationResult(VcVerification.ExpirationCheck, true) ) diff --git a/pollux/core/src/main/scala/org/hyperledger/identus/pollux/core/service/verification/VcVerificationServiceImpl.scala b/pollux/core/src/main/scala/org/hyperledger/identus/pollux/core/service/verification/VcVerificationServiceImpl.scala index f32099b66b..5350db594b 100644 --- a/pollux/core/src/main/scala/org/hyperledger/identus/pollux/core/service/verification/VcVerificationServiceImpl.scala +++ b/pollux/core/src/main/scala/org/hyperledger/identus/pollux/core/service/verification/VcVerificationServiceImpl.scala @@ -216,7 +216,7 @@ class VcVerificationServiceImpl(didResolver: DidResolver, uriDereferencer: URIDe .as( VcVerificationResult( credential = credential, - verification = VcVerification.SubjectVerification, + verification = VcVerification.SemanticCheckOfClaims, success = true ) ) @@ -224,7 +224,7 @@ class VcVerificationServiceImpl(didResolver: DidResolver, uriDereferencer: URIDe ZIO.succeed( VcVerificationResult( credential = credential, - verification = VcVerification.SubjectVerification, + verification = VcVerification.SemanticCheckOfClaims, success = false ) )