Code Monkey home page Code Monkey logo

nzcovidpass's People

Contributors

jeds6391 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

nzcovidpass's Issues

Add .NET standard 2.0 target

Would be good to support full framework via a .NET standard 2.0 target.

There may be some complications due to usage of later .NET functionality but most should be manageable.

Consider making `PassVerifier` generic over the credential type

Currently the library is limited to the PublicCovidPass credential type, but it may be worthwhile making this more flexible.

A possible signature for the verifier could be:

// Verifies the provided payload as a pass of type `TCredential`
Task<PassVerifierContext<TCredential>> VerifyAsync<TCredential>(string passPayload);

Most of the components are already designed to be agnostic to the type of pass - the main touch points would be:

  • CwtSecurityToken: need a way to expose a generic pass
  • PassVerifier: need a way to accept the credential type and pass it through to the relevant components

Expiry and Valid From dates are incorrect

The validity and expiry dates on the Token object do not match up with the displayed dates on the COVID pass.

I have tried to shift them from UTC to NZT but this also does not work, it seems they are just a date rather than datetime.

Does the MoH give these date values as unix time? If so, can the time also be preserved?

var validFrom = result.Token.ValidFrom;
var validTo = result.Token.ValidTo;

image

In this image, these are the times in the token, but they are back by one day.

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.