Commit Graph

307 Commits

Author SHA1 Message Date
Ryan Slobojan f2fcac8372
Merge pull request #38 from corrmaan/shc-refactoring
Add Nova Scotia's public key
2021-10-12 11:31:22 -04:00
Ryan Slobojan 1b9d592d25
Merge branch 'shc-refactoring' into shc-refactoring 2021-10-12 11:31:11 -04:00
Ryan Slobojan cb16adefc1 Added issuer display names, and NS issuer info (Thanks @corrmaan!)
* All issuers now have display names which will go onto generated cards
* Some other minor cleanup as part of a pending code change for SHC
  receipt support
2021-10-12 11:29:43 -04:00
Cory Marshall 8d3176bd92 Add Nova Scotia's public key 2021-10-12 11:56:50 -03:00
Ryan Slobojan 8376ea6bb0 Merge remote-tracking branch 'origin/main' into shc-refactoring
* origin/main:
  add reference to setup.md
  Add Alberta's public key
2021-10-10 19:06:41 -04:00
Ryan Slobojan bdc3a052a0 Further SHC refactoring
* Standardized handling of SHC data to generate receipt objects
* Added examples of decoded SHC data for ease of reference and for knowledge-sharing
* Refactored decoder to make logic more standardized for cross-region decoding, and
   eliminated most special-case handling
* Added rejection of non-verified SHC issuers for card generation
* Added rejection of non-COVID SHC cards for card generation
2021-10-10 19:05:54 -04:00
Ryan Slobojan 1ecb61f2ca Added documentation around what code to delete Oct. 22nd to turn off old-style QR code generation 2021-10-10 11:51:27 -04:00
Billy Lo 03c49f3be9
add reference to setup.md 2021-10-09 08:45:24 -04:00
Ryan Slobojan d24e218f8c WIP: SHC code handling refactoring
* QR code rendering for SHCs fixed for images - had to use
  Nuintun QRcode lib and render in 2 chunks (byte and numeric),
  was not possible to do this with zxing
* Add support for image file processing (Thanks upstream!)
* Added support for scanning all pages in a PDF for SHC codes
* Simplified ON receipt detection algorithm (well-known PDF info)
* Re-hide render canvas at bottom of page
* Minor README updates
* TBD: Handle multi-jurisdiction SHCs cleanly (not all data is being
  properly passed along at the moment leading to missing card data)
* TBD: blow up if invalid issuer detected in SHC (currently allows
  card creation even with invalid issuer)
2021-10-08 23:05:58 -04:00
Ryan Slobojan b5e09a7928
Merge pull request #36 from grepme/patch-1
Add Alberta's public key
2021-10-08 08:39:25 -04:00
Kyle Richelhoff f4a9515803
Add Alberta's public key 2021-10-07 23:43:57 -06:00
Ryan Slobojan 06e360df87 Send Promise reject as an Error, not a string
* Also filter from Sentry reporting
2021-10-07 20:35:57 -04:00
Ryan Slobojan 384624605a Try to improve handling on image-only PDFs which are detected as QC SHC PDFs
* Also remove .png from select box since we don't actually support it right now
2021-10-06 22:05:29 -04:00
Ryan Slobojan 38a02e5d00 Add in the data we have so far on AB's SHC impl
* Their key will eventually show up at https://skphr.prd.telushealthspace.com/.well-known/jwks.json
   however they appear to have misconfigured CloudFlare and that URL redirects to /home, which
   means none of the SHCs issued by AB to date can be validated :(
2021-10-06 18:02:13 -04:00
Ryan Slobojan d0eafe76c8 Added more Sentry message filtering, improved PDF metadata analysis 2021-10-06 18:00:56 -04:00
Ryan Slobojan 5fc81b82a8 More Sentry fixes and app error handling
* Bump lockfile ver of pdjjs-dist to match package.json definition
* Also added dev env wiring code for Vagrant VM
* Increment app version to 1.9.19
* Assorted logging cleanup and debugging addition around QC and BC SHC codes to help improve SHC code detection
2021-10-06 16:24:35 -04:00
Ryan Slobojan 99c66260a7 Lots of Sentry error handling cleanup (don't log known situations)
* Also fixed duplicated words on multi-dose selection
* Bump rev to 1.9.18
2021-10-06 13:10:36 -04:00
Ryan Slobojan 3ae22de2f1
Merge pull request #32 from billylo1/polyfill-starts-with
Add a polyfill for String.prototype.startsWith
2021-10-05 12:56:28 -04:00
Ryan Slobojan 33af99c529 Merge remote-tracking branch 'origin/main' into polyfill-starts-with
* origin/main: (23 commits)
  Fix typo in expiry date (10-23 -> 10-22), bump page rev
  name fix for photo receipts
  updated save photo headings and added expiry
  Fix for pdfjs type imports
  tuned the dates heading / details a bit.
  added expiry date to pass
  added expiration date and default to ON logic
  Fix input element not accepting PDFs on older iOS devices
  Fix Save Photo not working on iOS due to html-to-image error when handling   on that platform.
  cleaned up console logging to be ready for main branch merge
  pre-merge with main updates
  Added Saskatchewan SHC issuer info
  Stop splitting vaccinename so we can detect AZ correctly
  special handling of shc code from QC
  Failed to locate ByteRange is an expected error
  specify error correction level of QR code in photos to make it compatible with BC scanner app
  functional shc (including photo)
  add to wallet working now - working on photos portion
  verifyJWS working now... picked up latest issuer code
  SHC - Smart Health Card support. Parse QR code from PNG image and parse it into Payload
  ...
2021-10-05 12:34:35 -04:00
Ryan Slobojan c608b2d6a6
Merge pull request #33 from billylo1/improve-logging-when-not-digitally-signed
Failed to locate ByteRange is an expected error
2021-10-05 12:33:13 -04:00
Ryan Slobojan cdf3748317 Merge remote-tracking branch 'origin/main' into improve-logging-when-not-digitally-signed
* origin/main: (22 commits)
  Fix typo in expiry date (10-23 -> 10-22), bump page rev
  name fix for photo receipts
  updated save photo headings and added expiry
  Fix for pdfjs type imports
  tuned the dates heading / details a bit.
  added expiry date to pass
  added expiration date and default to ON logic
  Fix input element not accepting PDFs on older iOS devices
  Fix Save Photo not working on iOS due to html-to-image error when handling   on that platform.
  cleaned up console logging to be ready for main branch merge
  pre-merge with main updates
  Added Saskatchewan SHC issuer info
  Stop splitting vaccinename so we can detect AZ correctly
  special handling of shc code from QC
  specify error correction level of QR code in photos to make it compatible with BC scanner app
  functional shc (including photo)
  add to wallet working now - working on photos portion
  verifyJWS working now... picked up latest issuer code
  SHC - Smart Health Card support. Parse QR code from PNG image and parse it into Payload
  Add support for iPhone 6 iOS 12.5
  ...

# Conflicts:
#	src/process.ts
2021-10-05 12:32:53 -04:00
Ryan Slobojan 58739b8212 Fix typo in expiry date (10-23 -> 10-22), bump page rev 2021-10-05 12:12:42 -04:00
Jason Liu 26ce0bb965 Merge branch 'main' of https://github.com/billylo1/covidpass into main 2021-10-04 20:24:45 -04:00
Jason Liu 1f57403cd7 name fix for photo receipts 2021-10-04 20:23:43 -04:00
Jason Liu 3c8653b5d3 updated save photo headings and added expiry 2021-10-04 20:09:54 -04:00
Ryan Slobojan 157c11bcd3 Fix for pdfjs type imports
* Also added a bit more about Android at the top of the homepage
2021-10-04 19:19:06 -04:00
Ryan Slobojan 36f7595fca
Merge pull request #27 from Coteh/main
Fix bug preventing file selection on iPhone 6 iOS 12.5
2021-10-04 17:21:40 -04:00
Billy Lo 7b17a87edf tuned the dates heading / details a bit. 2021-10-03 22:34:28 -04:00
Billy Lo 22101f9a4b added expiry date to pass 2021-10-03 22:24:30 -04:00
Billy Lo bbb81c6920 added expiration date and default to ON logic 2021-10-03 21:51:49 -04:00
Coteh 82a1b85b24 Fix input element not accepting PDFs on older iOS devices
see https://stackoverflow.com/a/57163798 for more information on this solution
2021-10-03 21:42:07 -04:00
Coteh dfb7aa39c6 Fix Save Photo not working on iOS due to html-to-image error when handling   on that platform.
Replaced with a margin that closely matches the spacing that was there originally.
2021-10-03 21:29:26 -04:00
Coteh 0f31cdd252 Merge remote-tracking branch 'origin/main' into main 2021-10-03 12:23:52 -04:00
Billy Lo 8eac24880d
Merge pull request #35 from billylo1/shc-support
Shc support
2021-10-01 09:23:44 -04:00
Billy Lo f6cdcada1c cleaned up console logging to be ready for main branch merge 2021-10-01 09:16:28 -04:00
Billy Lo 6f45d6c690 Merge branch 'main' into shc-support 2021-10-01 09:15:52 -04:00
Billy Lo 4957bd8f55 Merge branch 'shc-support' of https://github.com/billylo1/covidpass into shc-support 2021-10-01 03:23:06 -04:00
Billy Lo 32ea1edbae pre-merge with main updates 2021-10-01 03:23:02 -04:00
Ryan Slobojan 9f2e9b50d7 Added Saskatchewan SHC issuer info 2021-09-30 23:57:50 -04:00
Ryan Slobojan 2e373857a2
Merge pull request #34 from billylo1/covishield-as-az
Stop splitting vaccinename so we can detect AZ correctly
2021-09-30 18:34:54 -04:00
Ryan Slobojan 75c25c1c5b Stop splitting vaccinename so we can detect AZ correctly
* Because we were splitting on space, "COVID-19 COVISHIELD"  was being converted to
  just "COVID-19" which broke AZ detection for Covishield
2021-09-30 18:27:20 -04:00
Billy Lo d2c824f129 Merge branch 'main' into shc-support 2021-09-30 17:44:17 -04:00
Billy Lo 1bfa09de47 special handling of shc code from QC 2021-09-30 17:42:36 -04:00
Evert Timberg 754aaa0374 Failed to locate ByteRange is an expected error
We don't need to capture an exception for this, instead
just capture the message and move on.
2021-09-30 09:17:29 -04:00
Evert Timberg 9fac4dbcc4 Add a polyfill for String.prototype.startsWith
This error appears in Sentry and is likely occuring in older browsers
2021-09-30 08:34:33 -04:00
Billy Lo 9c2130ba2d specify error correction level of QR code in photos to make it compatible with BC scanner app 2021-09-30 02:24:24 -04:00
Billy Lo 0e53240dd0 functional shc (including photo) 2021-09-30 00:26:15 -04:00
Billy Lo 0fe177dffa add to wallet working now - working on photos portion 2021-09-29 21:39:11 -04:00
Ryan Slobojan 1db3095ec1
Merge pull request #31 from billylo1/covishield-as-az
Updated Covishield to detect as AZ
2021-09-29 21:17:57 -04:00
Ryan Slobojan 4576b3bd3b Increment public build number 2021-09-29 21:00:02 -04:00