Skip to content

Commit

Permalink
Merge pull request #37 from FIWARE/wistefan-patch-2
Browse files Browse the repository at this point in the history
Update verifier.go
  • Loading branch information
wistefan authored Jun 5, 2024
2 parents bda7446 + 0e608e2 commit 070bde0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions verifier/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,6 @@ func (v *CredentialVerifier) GenerateToken(clientId, subject, audience string, s
credentialsByType := map[string][]*verifiable.Credential{}
credentialTypes := []string{}
for _, vc := range verifiablePresentation.Credentials() {
// verify the credential
verificationError := vc.CheckProof()
if verificationError != nil {
return 0, "", verificationError
}
for _, credentialType := range vc.Contents().Types {
if _, ok := credentialsByType[credentialType]; !ok {
credentialsByType[credentialType] = []*verifiable.Credential{}
Expand Down Expand Up @@ -473,11 +468,6 @@ func (v *CredentialVerifier) AuthenticationResponse(state string, verifiablePres
trustedChain, _ := verifyChain(verifiablePresentation.Credentials())

for _, credential := range verifiablePresentation.Credentials() {
// verify the credential
verificationError := credential.CheckProof()
if verificationError != nil {
return sameDevice, verificationError
}

verificationContext, err := v.getTrustRegistriesValidationContext(loginSession.clientId, credential.Contents().Types)
if err != nil {
Expand Down

0 comments on commit 070bde0

Please sign in to comment.