nuts-foundation/nuts-node

View on GitHub
auth/services/selfsigned/validator.go

Summary

Maintainability
A
1 hr
Test Coverage
A
92%

Method validator.verifyVP has 56 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (v validator) verifyVP(vp vc.VerifiablePresentation, validAt *time.Time) (credentialSubject types.EmployeeIdentityCredentialSubject, proof vc.JSONWebSignature2020Proof, resultErr error) {
    // #2428: NutsEmployeeCredential should be valid (signature), but does not need to be trusted.
    vcs, err := v.vcr.Verifier().VerifyVP(vp, true, true, validAt)
    if err != nil {
        if errors.As(err, &verifier.VerificationError{}) {
Severity: Minor
Found in auth/services/selfsigned/validator.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status