Git Product home page Git Product logo

Comments (4)

drcoccodrillus avatar drcoccodrillus commented on August 18, 2024

I put my hand on the validator and I reckon I've found the issue.
I don't know why, but some keys used to sign green passes are not recognized.

This is where the validation process fails. The commented part is to bypass signature validation.

const buildResponse = (certificate, rulesResult, signatureOk) => {
  let motivation = rulesResult;
  /*if (!signatureOk) {
    motivation = {
      code: NOT_VALID,
      result: false,
      message: 'Invalid signature',
    };
  }*/
  return {
    person: certificate.person ? `${certificate.person.givenName} ${certificate.person.familyName}` : null,
    date_of_birth: certificate.dateOfBirth ? certificate.dateOfBirth : null,
    ...motivation,
  };
};

Any suggestion about how to tackle the issue?

from verificac19-sdk.

astagi avatar astagi commented on August 18, 2024

Hi @drcoccodrillus sorry for my late response! Where your certificate has been issued from?

from verificac19-sdk.

drcoccodrillus avatar drcoccodrillus commented on August 18, 2024

Hi @astagi! Thank you for your reply and my apologies for answering you after one month.
The mentioned green passes where issued by the Italian government. I noticed that mostly the green passes that where bounced by the validator are the temporary one which are coded as "swab". After few days they are always substituted whit a new GP coded as "Cured of COVID-19" and these are correctly validated.

Example:
image

image

from verificac19-sdk.

astagi avatar astagi commented on August 18, 2024

No problem @drcoccodrillus , glad your problem has disappeared :) I can close this issue then!

from verificac19-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.