jeds6391 / nzcovidpass Goto Github PK
View Code? Open in Web Editor NEWProvides the ability to ability to verify New Zealand COVID Pass payloads in .NET.
License: MIT License
Provides the ability to ability to verify New Zealand COVID Pass payloads in .NET.
License: MIT License
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 passPassVerifier
: need a way to accept the credential type and pass it through to the relevant componentsSystem.Formats.Cbor
is a built-in offering for reading/writing CBOR data.
It is slightly primitive in comparison to the current CBOR implementation used, but it may be nice to remove an external dependency and only depend on libraries from MSFT.
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;
In this image, these are the times in the token, but they are back by one day.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.