In order 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.
Run the following command in the folder you unzipped the application:
npm install
For Linux/MacOS
Execute the following command to start the application:
./start.sh
For Windows
Execute the following command to start the application:
.\start.bat
Access the Application on Your Browser You should be able to access the sample application via the following URL:
http://localhost:3001
Select a test ID to login to MockPass:
Note:
As of version 2.0.0 of our API specifications, the URLs of the APIs have changed. Please note the different configurations accordingly.
For Linux/MacOS
Edit the start.sh
. Look for SANDBOX ENVIRONMENT
, Comment out these configurations,
# SANDBOX ENVIRONMENT (no PKI digital signature)
# export AUTH_LEVEL=L0
# export MYINFOBIZ_API_AUTHORISE='https://sandbox.api.myinfo.gov.sg/biz/v2/authorise'
# export MYINFOBIZ_API_TOKEN='https://sandbox.api.myinfo.gov.sg/biz/v2/token'
# export MYINFOBIZ_API_ENTITYPERSON='https://sandbox.api.myinfo.gov.sg/biz/v2/entity-person-sample'
Look for TEST ENVIRONMENT
, uncomment these configurations,
# TEST ENVIRONMENT (with PKI digital signature)
export MYINFOBIZ_API_AUTHORISE='https://test.api.myinfo.gov.sg/biz/v2/authorise'
export MYINFOBIZ_API_TOKEN='https://test.api.myinfo.gov.sg/biz/v2/token'
export MYINFOBIZ_API_ENTITYPERSON='https://test.api.myinfo.gov.sg/biz/v2/entity-person'
Execute the following command to start the application:
./start.sh
For Windows
Edit the start.bat
. Look for SANDBOX ENVIRONMENT
, comment out these configurations,
rem SANDBOX ENVIRONMENT (no PKI digital signature)
rem set AUTH_LEVEL=L0
rem set MYINFOBIZ_API_AUTHORISE=https://sandbox.api.myinfo.gov.sg/biz/v2/authorise
rem set MYINFOBIZ_API_TOKEN=https://sandbox.api.myinfo.gov.sg/biz/v2/token
rem set MYINFOBIZ_API_ENTITYPERSON=https://sandbox.api.myinfo.gov.sg/biz/v2/entity-person-sample
Look for TEST ENVIRONMENT
, uncomment these configurations,
rem TEST ENVIRONMENT (with PKI digital signature)
set AUTH_LEVEL=L2
set MYINFOBIZ_API_AUTHORISE=https://test.api.myinfo.gov.sg/biz/v2/authorise
set MYINFOBIZ_API_TOKEN=https://test.api.myinfo.gov.sg/biz/v2/token
set MYINFOBIZ_API_ENTITYPERSON=https://test.api.myinfo.gov.sg/biz/v2/entity-person
Execute the following command to start the application:
.\start.bat
You may contact [email protected] for any other technical issues, and we will respond to you within 5 working days.