The demo application meant to illustrate how to integrate a Visitor Management System (VMS) with Verify APIs.
- Quick Start
- How To Use
- URL & QR Code Generation
- Enable Payload Encryption & PKI Digital Signature
- MyInfo Connector NodeJS
- Change Logs
For the demo application to run, you will need to install Node and NPM.
Follow the instructions given by the links below depending on your OS.
For windows user, you are required to install the OpenSSL library in your computer in order to use myinfo-connector-nodejs library. Please refer to the OpenSSL installation guide here.
Run the following command in the folder you unzipped the application:
npm install
Execute the following command to start the application:
npm start
Access the Application on Your Browser You should be able to access the sample application via the following URL:
http://localhost:3002
The application describes a demo Visitor Management System (VMS),
-
Files in
your-vms-client
andyour-vms-server
represent the VMS Client and Server respectively and can be modified. -
Files in
mock-server
are for mocking SingPass Mobile and VERIFY Server flow and SHOULD NOT be modified.
To enable Dynamic QR. Edit your-vms-server/app.js
Look for let qrCodeParams
. To enable static QR, uncomment and use these configurations:
let qrCodeParams = {
'qrType': 'static'
...
}
To enable dynamic QR, uncomment and use these configurations:
let qrCodeParams = {
'qrType': 'dynamic',
...
}
To enable payload encryption and signing. Edit your-vms-server/config/config.js
. Look for Without encryption and signing
, uncomment and use these configurations:
/* Without Encryption and Signing
Note: The sandbox environment is used for your testing when developing your prototype
*/
'ENVIRONMENT' : 'SANDBOX',
'TOKEN_URL' : 'https://sandbox.api.myinfo.gov.sg/sgverify/v2/token',
'PERSON_URL' : 'https://sandbox.api.myinfo.gov.sg/sgverify/v2/person',
To disable payload encryption and signing. Look for With encryption and signing
, uncomment and use these configurations:
/* With Encryption and Signing
Note: The test environment is used for testing your application with the full security measures required in production
*/
'ENVIRONMENT' : 'TEST',
'TOKEN_URL' : 'https://test.api.myinfo.gov.sg/sgverify/v2/token',
'PERSON_URL' : 'https://test.api.myinfo.gov.sg/sgverify/v2/person',
This demo application is using the myinfo-connector-nodejs library. MyInfo Connector aims to simplify consumer's integration effort by providing an easy to use Javascript library to integrate into your application.
You may contact our support for any other technical issues, and we will respond to you within 5 working days.