GithubHelp home page GithubHelp logo

isabella232 / vaccinationsbevisverifiering Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diggsweden/vaccinationsbevisverifiering

0.0 0.0 0.0 2.46 MB

App för verifiering av vaccinationsbevis

License: MIT License

C# 100.00%

vaccinationsbevisverifiering's Introduction

Logo

Vaccinationsbevis verifiering

Xamarin Application for verifying EU Digital Covid Certificate based on specific business rules for a specific use case.


About Vaccinationsbevis verifiering

This GitHub-repository contains a reference implementation for the validation of the EU Digital Covid Certificate, with the purpose of verifying vaccination events in regards to specific business rules for a specific use case.

The solution is developed by Swedish Agency for Digital Government (DIGG).

Components

  • [VaccinbevisVerifiering] - The Common Xamarin code.

  • [VaccinbevisVerifiering.Android] - Android specific code.

  • [VaccinbevisVerifiering.iOS] - iOS Specific code.

Resources

DCC Trust Point

Vaccinationsbevis Verifiering downloads, and caches resources that are used during the verification process. The application downloads its resources once every 24 hours, when internet connectivity is available. In the event that no internet connectivity is available or that the resources can't be downloaded, then the cached version of the resources are used until they can be downloaded and cached once again.

The application uses the Swedish DCC Trust Point to download its external resources

There are two resources that the application needs to perform the verification:

  • Trust List - A list of all valid Signature public keys
  • Value Sets - Multiple value sets each with a defined set of values. E.g. vaccines-covid-19-names

The resources available at the Swedish DCC Trust Point have their origin in the EU Digital Covid Certificate Gateway (EU DCCG), as shown in the following illustration:

External Resources

More information about the Swedish DCC Trust Point can be found at DCC-trust

Specific Business rules

Vaccinationsbevis Verifiering can download the currently active business rules for the applications specific use case.

Test data

The following certificates can be used in the QA-environment.

Test case Description QR-code Expected result
Fully vaccinated, quarantine period passed Valid: 2023-07-01
Vaccine: Comirnaty (EU/1/20/1528)
Dose: 2/2
Signature:Valid
Dose 2 of 2
Fully vaccinated, quarantine period passed Valid: 2023-07-01
Vaccine: Janssen (EU/1/20/1525)
Dose: 1/1
Signature:Valid
Dose 1 of 1
Booster dose within quarantine period Vaccine: Comirnaty (EU/1/20/1528)
Dose: 3/3
Vaccination Date: <14 days ago
Signature:Valid
Create from https://dgc.a-sit.at/ehn/
Booster dose within quarantine period Vaccine: Janssen (EU/1/20/1525)
Dose: 2/2
Vaccination Date: <14 days ago
Signature:Valid
Create from https://dgc.a-sit.at/ehn/
Expired Dose 2 of 2
Invalid signature Invalid signer
Invalid DCC type Type: Recovered Invalid type
Invalid DCC type Type: Tested Invalid type
Not a DCC QR-code Link to https://digg.se Invalid QR code
Invalid vaccine Valid: 2023-07-01
Vaccine: BBIBP-CorV (BBIBP-CorV)
Dose: 2/2
Signature: Valid
Dose 2 of 2
To few doses Valid: 2023-07-01
Vaccine: Comirnaty (EU/1/20/1528)
Dose: 1/2
Signature:Valid
Dose 1 of 2
Fully vaccinated within quarantine period Vaccine: Comirnaty (EU/1/20/1528)
Dose: 2/2
Vaccination Date: <14 days ago
Signature:Valid
Create from https://dgc.a-sit.at/ehn/
Fully vaccinated within quarantine period Vaccine: Janssen (EU/1/20/1525)
Dose: 1/1
Vaccination Date: <14 days ago
Signature:Valid
Create from https://dgc.a-sit.at/ehn/

Copyright © 2021, Myndigheten för digital förvaltning (DIGG). Licensed under the MIT license.

vaccinationsbevisverifiering's People

Contributors

ainali avatar davidsigemo avatar johanschon avatar mabe50 avatar peterssond avatar sondaica avatar

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.