Skip to content

Files

Latest commit

f6b2a64 · May 24, 2021

History

History
124 lines (66 loc) · 3.14 KB

README.md

File metadata and controls

124 lines (66 loc) · 3.14 KB

MyInfo Demo App

The demo application meant to illustrate how to integrate your application with MyInfo APIs.

Contents



Quick Start

1.1 Install Node and NPM (skip this step if you have NPM installed)

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.

1.2 Run NPM install

Run the following command in the folder you unzipped the application:

npm install

1.3 Start the Application

Execute the following command to start the application:

Test with Payload Encryption & PKI Digital Signature

npm start

Or, test without Payload Encryption & PKI Digital Signature

npm run sandbox

Access the Application on Your Browser You should be able to access the sample application via the following URL or click here:

http://localhost:3001

Demo Screenshot Demo Screenshot


How To Use

Login with SingPass

Click RETRIEVE MYINFO and select the test user ID from the Mock Pass.

Note: refer to the Personas on the NDI Developer and Partner Portal for the test accounts to be used.


MyInfo Connector NodeJS

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.

Troubleshooting

Change the logging level for debugging within the library.

Edit the ./config/config.js , change the DEBUG_LEVEL value to debug.

IMPORTANT NOTE: debug mode should never be turned on in production

OpenSSL Installation [For Windows only]

Skip this step if you have OpenSSL installed.

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.



Reporting Issue

You may contact our support for any other technical issues, and we will respond to you within 5 working days.