OAuth 2.1 Concepts
Last updated
Was this helpful?
Last updated
Was this helpful?
MyInfo APIs use - Authorization code flow to perform authentication & authorization; it allows mobile and web clients to obtain tokens securely.
The code flow comprises 2 main parts:
Authorization flow that runs in the browser
Token flow that is a server-to-server call
Browser redirects to the /authorize endpoint of the AuthZ server.
The AuthZ server redirects to the Singpass, the AuthN server.
The User authenticates and redirects back to the AuthZ server.
The AuthZ server redirects to the consent page for user consent.
The User consents.
The AuthZ server redirects back to the client application callback URL with a one-time token called Authorization Code(authcode)
The client application makes a post request to the /token API endpoint with the Authorization code (authcode) and client_assertion.
The AuthZ Server validates the authcode and client_assertion before issuing the access_token.