Skip to content

Working example of SingPass Authentication using MockPass

Notifications You must be signed in to change notification settings

deskoh/spcp-auth

Repository files navigation

SingPass Authentication using MockPass

Working example using MockPass, a mock SingPass/CorpPass server and spcp-auth-client.

QuickStart

# Install dependencies
npm i --prefix=mockpass
npm i

# Starts MockPass
npm run dev --prefix mockpass

# Starts Client
npm run dev

# Go to http://localhost:5000/private
# Login using Login Page (configurable in `mockpass\.env`)
# See Hello {userName} in browser.

VS Code Debugging

Compount Launch Configurations can be used to start debug sesssions for Client and MockPass in parallel.

Breakpoints can be set in mockpass\node_modules\@opengovsg\mockpass\lib\express\spcp.js understand SingPass authentication flow.

About

Working example of SingPass Authentication using MockPass

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published