Web Server and SSR Front-End

Summarize Flow

  1. The web server generates an authentication URL and opens the authentication URL through browser redirection, which redirects the user to the sgID server for authorization.

  2. The user authorizes using their Singpass mobile app, and consents to share their data with the application.

  3. The sgID server sends an authorization code to the browser, which performs a callback redirect to the web server's callback URL.

  4. The web server exchanges the authorization code for an access token and id token using its client ID and secret.

  5. The web server then uses access token an obtain encrypted user information from sgID server.

  6. The web server will then render customised HTML pages.

Complete Flow Diagram

Last updated