Skip to content

singpass/demo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Demo App

This repository provides examples of how you might integrate with Singpass (an OIDC provider) as an OIDC client.

Currently, we have examples using NodeJS and Java.

Running the Demo App Locally

To run the demo app for your preferred language locally, please refer to the instructions below.

NodeJS

Install NodeJS and npm and run:

cd examples/nodejs
npm install
npm start

Java

This demo application supports any Java version from Java 17 or newer. Once Java is installed, run:

cd examples/java
./gradlew clean build
./gradlew run

On Windows, use gradlew.bat instead of gradlew.

Using the Demo App

Once your demo app is running, visit http://localhost:3080.

before login screenshot

Click the "log in with Singpass" button. On the Singpass login page, select "password login". You may use the staging example credentials below:

Singpass ID : S7790795E
Password    : T4!vY9@xL7$p

After successfully authenticating, you will be redirected to the demo app. If all went well, a UUID returned by the Singpass API will be shown.

after login screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors