Skip to content

Commit

Permalink
feat: optional status list check for attestation vc
Browse files Browse the repository at this point in the history
Signed-off-by: Andrii Holovko <[email protected]>
  • Loading branch information
aholovko committed Dec 29, 2023
1 parent edcf8be commit d89e72a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/service/clientattestation/client_attestation_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,11 @@ func (s *Service) validateAttestationVP(
}

// check attestation VC status
if err = s.vcStatusVerifier.ValidateVCStatus(ctx, vcc.Status, vcc.Issuer); err != nil {
return nil, nil, fmt.Errorf("validate attestation vc status: %w", err)
// TODO: status list should be mandatory for attestation VC
if vcc.Status != nil {
if err = s.vcStatusVerifier.ValidateVCStatus(ctx, vcc.Status, vcc.Issuer); err != nil {
return nil, nil, fmt.Errorf("validate attestation vc status: %w", err)
}
}

attestationVCs = append(attestationVCs, vc)
Expand Down

0 comments on commit d89e72a

Please sign in to comment.