Skip to content

Commit

Permalink
Merge pull request #6 from rwilson504/SetOfflineDefaultTrue
Browse files Browse the repository at this point in the history
Set Offline to True
  • Loading branch information
rwilson504 authored Mar 25, 2022
2 parents 0bbaef8 + 40abc73 commit e056689
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions NZCOVIDPass/ControlManifest.Input.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest>
<control namespace="RAW" constructor="NZCOVIDPass" version="0.0.13" display-name-key="NZ COVID Pass" description-key="NZCOVIDPass description" control-type="standard" preview-image="img/preview.png">
<control namespace="RAW" constructor="NZCOVIDPass" version="0.0.14" display-name-key="NZ COVID Pass" description-key="NZCOVIDPass description" control-type="standard" preview-image="img/preview.png">
<property name="QRCode" display-name-key="QR Code" description-key="The contents of the QR Code" of-type="SingleLine.Text" usage="bound" required="true" />
<property name="offlineMode" display-name-key="Offline Mode" description-key="If offline mode is set to true the component will attempt to validate the COVID-19 Pass using a prefetched DID document, otherwise it will attempt to resolve the DID document from the MoH." usage="input" required="false" of-type="TwoOptions" default-value="0" />
<property name="offlineMode" display-name-key="Offline Mode" description-key="If offline mode is set to true the component will attempt to validate the COVID-19 Pass using a prefetched DID document, otherwise it will attempt to resolve the DID document from the MoH." usage="input" required="false" of-type="TwoOptions" default-value="1" />
<property name="testMode" display-name-key="Test Mode" description-key="Allows you to set the control into test mode which will ensure that the sample QR code from https://nzcp.covid19.health.nz/#valid-worked-example will validate." usage="input" required="true" of-type="TwoOptions" default-value="0" />
<property name="trustedIssuer" display-name-key="Trusted Issuer" description-key="Can be used when control is in offline mode to supply trusted issuer id. DID Document property must also be set in this scenario." usage="input" required="false" of-type="SingleLine.Text" />
<property name="didDocument" display-name-key="DID Document" description-key="Can be used when control is in offline mode to supply static DID document JSON. Trusted Issue property must also be set in this scenario." usage="input" required="false" of-type="SingleLine.Text" />
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# NZ COVID Pass PCF Component
<span style="color:red">**If you are having issues with the control not working within Android or iOS make sure to set the Offline Mode for the component to true. This will utilize a cached copy of the DID Issuer instead of attempting to retrive it from the web.**</span>

This PCF component utilizes [nzcp-js](https://github.com/vaxxnz/nzcp-js) to provide NZ Covid Pass Validation within a Canvas Power App.

<img width="521" alt="image" src="https://user-images.githubusercontent.com/7444929/143484767-3bd05296-bae9-4e4a-8712-6bca273dd160.png">
Expand Down Expand Up @@ -33,7 +35,7 @@ Make sure you have enabled PCF components for Canvas apps in your environment.
| Name | Mode | Type | Description | Default |
|---|---|---|---| --- |
|QR Codekd|Input| SingleLine.Text | The contents of the QR Code||
|Offline Mode|Input| Boolean | If offline mode is set to true the component will attempt to validate the COVID-19 Pass using a prefetched DID document, otherwise it will attempt to resolve the DID document from the MoH.|false|
|Offline Mode|Input| Boolean | If offline mode is set to true the component will attempt to validate the COVID-19 Pass using a prefetched DID document, otherwise it will attempt to resolve the DID document from the MoH. **Recently changed this to true as default due to CORS restrictions on the nzcp site for obtaining the trusted issuer.**|true|
|Test Mode|Input|Boolean|Allows you to set the control into test mode which will ensure that the sample QR code from https://nzcp.covid19.health.nz/#valid-worked-example will validate.|false|
|Trusted Issuer|Input|SingleLine.Text|Can be used when control is in offline mode to supply trusted issuer id. DID Document property must also be set in this scenario.||
|DID Document|Input|SingleLine.Text|Can be used when control is in offline mode to supply static DID document JSON. Trusted Issue property must also be set in this scenario.||
Expand Down
Binary file modified Sample/NZ COVID Pass Scanner.msapp
Binary file not shown.
2 changes: 1 addition & 1 deletion Solution/NZCOVIDPass/src/Other/Solution.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<LocalizedName description="NZCOVIDPass" languagecode="1033" />
</LocalizedNames>
<Descriptions />
<Version>1.0.8</Version>
<Version>1.0.9</Version>
<!-- Solution Package Type: Unmanaged(0)/Managed(1)/Both(2)-->
<Managed>2</Managed>
<Publisher>
Expand Down

0 comments on commit e056689

Please sign in to comment.