This fork of R.Wilsons NZCP-PCF is to create an Offline (Non-Premium) version of the componet for the Te Wānanga o Aotearoa and the rest of Aotearoa/New Zelaland.
This PCF component utilizes nzcp-js to provide NZ Covid Pass Validation within a Canvas Power App.
Make sure you have enabled PCF components for Canvas apps in your environment. For instructions on that Click Here
- Download the managed solution provided in the Release are of this repo. NZCOVIDPass_managed.zip
- Navigate to https://make.powerapps.com
- Click on Solution area
- Click Import button on the ribbon and select the NZCOVIDPass_managed.zip file you downloaded.
- Followow the import wizard and wait for solution to import.
- Download the sample app file NZ COVID Pass Scanner.msapp
- Navigate to https://create.powerapps.com
- Click on Open from menu
- In the Open menu select Browse and choose the NZ COVID Pass Scanner.msapp file you downloaded
- Click the Open app button on the "This app may contian unsafe code" dialog.
- If an "Update code components" dialog appears click the Update button.
- The app will now open Power Apps Canvas Studio.
- Choose File from the ribbon and save the app to 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 |
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 |
Success | Output | Boolean | Provides the outcome of the COVID Pass validation | false |
Family Name | Output | SingleLine.Text | Pass holders family name | |
Given Name | Output | SingleLine.Text | Pass holders given name | |
Date of Birth | Output | SingleLine.Text | Pass holders date of birth | |
Violation Message | Output | SingleLine.Text | Friendly Error Message | |
Violation Section | Output | SingleLine.Text | Section of official specs under violation | |
Violation Link | Output | SingleLine.Text | Link to specifications breached | |
Violation Description | Output | SingleLine.Text | Simplified error message |
A sample app is included under the Sample folder of this project which you can import into your environment once you have deployed the PCF solution.